vihu21 commited on
Commit
eb87159
·
verified ·
1 Parent(s): 08e5cd0

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -2,23 +2,17 @@ FROM python:3.9-slim
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
5
-
6
- # HF requires port 7860
7
  ENV STREAMLIT_SERVER_PORT=7860
8
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
9
 
10
  WORKDIR /app
11
 
12
- # Copy dependencies first
13
  COPY requirements.txt .
14
-
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Copy app code
18
  COPY . .
19
 
20
- # Expose HF-required port
21
  EXPOSE 7860
22
 
23
- # Start Streamlit
24
- CMD ["streamlit", "run", "app.py"]
 
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
 
 
5
  ENV STREAMLIT_SERVER_PORT=7860
6
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
7
 
8
  WORKDIR /app
9
 
 
10
  COPY requirements.txt .
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
13
  COPY . .
14
 
 
15
  EXPOSE 7860
16
 
17
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
18
+