Akwbw commited on
Commit
a80b429
·
verified ·
1 Parent(s): 24a72f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -2,21 +2,22 @@ FROM mcr.microsoft.com/playwright/python:v1.49.0-jammy
2
 
3
  WORKDIR /code
4
 
5
- # Install Python dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
 
9
- # Install Browsers
10
  RUN playwright install chromium
11
 
12
- # Copy App Code
13
  COPY . .
14
 
15
- # Create directory for saving sessions with permissions
16
  RUN mkdir -p /code/data && chmod -R 777 /code/data
17
 
18
- # Expose Streamlit Port
19
- EXPOSE 8501
 
20
 
21
- # Run Streamlit
22
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=8501", "--server.headless=true"]
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
 
9
+ # Install Browser
10
  RUN playwright install chromium
11
 
12
+ # Copy App
13
  COPY . .
14
 
15
+ # Permissions for memory file
16
  RUN mkdir -p /code/data && chmod -R 777 /code/data
17
 
18
+ # --- IMPORTANT FIX ---
19
+ # Hugging Face sirf Port 7860 allow karta hai
20
+ EXPOSE 7860
21
 
22
+ # Streamlit ko force karein ke wo 7860 par chale
23
+ CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true", "--server.fileWatcherType=none"]