Mafia2008 commited on
Commit
b360b41
·
verified ·
1 Parent(s): bddc09b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
- # Use the full Python image
2
  FROM python:3.9
3
 
4
- # 1. Install system dependencies (FFmpeg + OpenGL for OpenCV)
5
  RUN apt-get update && apt-get install -y \
6
  ffmpeg \
7
  libavdevice-dev \
@@ -22,8 +21,11 @@ RUN pip install --upgrade pip
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
- # 5. Copy the app code
26
  COPY . .
27
 
28
- # 6. Run App with CORS and XSRF DISABLED (This fixes the "Stuck" screen)
29
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
 
 
 
 
 
1
  FROM python:3.9
2
 
3
+ # 1. Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libavdevice-dev \
 
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
+ # 5. Copy ALL files (Including the new .streamlit folder)
25
  COPY . .
26
 
27
+ # 6. Expose the port
28
+ EXPOSE 7860
29
+
30
+ # 7. Run App (Simple command, relying on config.toml)
31
+ CMD ["streamlit", "run", "app.py"]