4waiz commited on
Commit
3a5ad04
·
verified ·
1 Parent(s): 7428b66

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -3,9 +3,13 @@ FROM python:3.10-slim
3
  WORKDIR /app
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
6
-
7
- # copy your app
8
  COPY . .
9
 
 
 
 
 
 
 
10
  EXPOSE 7860
11
- CMD ["streamlit","run","app.py","--server.port=7860","--server.address=0.0.0.0"]
 
3
  WORKDIR /app
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
 
 
6
  COPY . .
7
 
8
+ # Streamlit server config for Spaces
9
+ ENV STREAMLIT_SERVER_PORT=7860 \
10
+ STREAMLIT_SERVER_ADDRESS=0.0.0.0 \
11
+ STREAMLIT_SERVER_HEADLESS=true \
12
+ STREAMLIT_BROWSER_GATHERUSAGESTATS=false
13
+
14
  EXPOSE 7860
15
+ CMD ["streamlit","run","app.py"]