Akwbw commited on
Commit
fc7890b
·
verified ·
1 Parent(s): a64dde5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -2,22 +2,17 @@ FROM mcr.microsoft.com/playwright/python:v1.49.0-jammy
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"]
 
2
 
3
  WORKDIR /code
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
7
 
 
8
  RUN playwright install chromium
9
 
 
10
  COPY . .
11
 
12
+ # Permissions
13
  RUN mkdir -p /code/data && chmod -R 777 /code/data
14
 
 
 
15
  EXPOSE 7860
16
 
17
+ # Streamlit ko Port 7860 par chalayenge
18
  CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true", "--server.fileWatcherType=none"]