nihun commited on
Commit
973aa11
·
verified ·
1 Parent(s): ff704a6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -15
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies including FFmpeg
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
@@ -10,22 +9,13 @@ RUN apt-get update && apt-get install -y \
10
  ffmpeg \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Copy and install requirements
14
  COPY requirements.txt ./
 
15
 
16
- RUN pip3 install --no-cache-dir -r requirements.txt
17
 
18
- # Copy application files
19
- COPY . .
20
 
21
- # Create temp directory
22
- RUN mkdir -p temp
23
 
24
- # Expose port for HF Spaces
25
- EXPOSE 7860
26
-
27
- # Health check
28
- HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
29
-
30
- # Run the application
31
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
9
  ffmpeg \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  COPY requirements.txt ./
13
+ COPY . ./src/
14
 
15
+ RUN pip3 install -r requirements.txt
16
 
17
+ EXPOSE 8501
 
18
 
19
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
20
 
21
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]