userIdc2024 commited on
Commit
df4c3f5
·
verified ·
1 Parent(s): 6815aea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9-slim
2
  WORKDIR /app
3
  ENV HOME=/app
4
  RUN mkdir -p /app/.streamlit && \
@@ -12,6 +12,6 @@ RUN apt-get update && apt-get install -y \
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
  RUN pip3 install -r requirements.txt
15
- EXPOSE 7860
16
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
17
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
1
+ FROM python:3.12-slim
2
  WORKDIR /app
3
  ENV HOME=/app
4
  RUN mkdir -p /app/.streamlit && \
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
  RUN pip3 install -r requirements.txt
15
+ EXPOSE 8501
16
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
17
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]