MBG0903 commited on
Commit
8cc6fb6
·
verified ·
1 Parent(s): b6c71bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,11 +2,10 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # install deps
6
  COPY requirements.txt /app/requirements.txt
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # copy source
10
  COPY src /app/src
11
 
12
  EXPOSE 7860
@@ -15,4 +14,5 @@ ENV STREAMLIT_SERVER_HEADLESS=true
15
  ENV STREAMLIT_SERVER_PORT=7860
16
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
17
 
18
- CMD ["streamlit", "run", "src/streamlit_app.py"]
 
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt /app/requirements.txt
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ # copy your src folder
9
  COPY src /app/src
10
 
11
  EXPOSE 7860
 
14
  ENV STREAMLIT_SERVER_PORT=7860
15
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
16
 
17
+ CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
18
+