userIdc2024 commited on
Commit
ca19024
·
verified ·
1 Parent(s): 07496a4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- FROM python:3.9-slim
2
 
3
- WORKDIR /app
4
 
5
  # Install build tools and curl
6
  RUN apt-get update && apt-get install -y \
@@ -10,7 +10,6 @@ RUN apt-get update && apt-get install -y \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # --- ADD THIS TO FIX PERMISSION ISSUE ---
14
  # Set environment variables to redirect Streamlit config/cache
15
  ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
16
  ENV STREAMLIT_CACHE_DIR=/app/.streamlit/cache
@@ -33,4 +32,4 @@ EXPOSE 8501
33
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
34
 
35
  # Run the Streamlit app
36
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.9-slim
2
 
3
+ WORKDIR /app
4
 
5
  # Install build tools and curl
6
  RUN apt-get update && apt-get install -y \
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
13
  # Set environment variables to redirect Streamlit config/cache
14
  ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
15
  ENV STREAMLIT_CACHE_DIR=/app/.streamlit/cache
 
32
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
33
 
34
  # Run the Streamlit app
35
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]