umangchaudhry commited on
Commit
7e31e50
Β·
verified Β·
1 Parent(s): e02a2ed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -2,6 +2,7 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
@@ -9,13 +10,21 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
 
 
 
 
15
  RUN pip3 install -r requirements.txt
16
 
 
17
  EXPOSE 8501
18
 
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy requirements and source code
14
  COPY requirements.txt ./
15
  COPY src/ ./src/
16
 
17
+ # ─── Copy your Streamlit config so base="light" and primaryColor="#0B6623" ───
18
+ COPY .streamlit /app/.streamlit
19
+
20
+ # Install Python dependencies
21
  RUN pip3 install -r requirements.txt
22
 
23
+ # Expose Streamlit port
24
  EXPOSE 8501
25
 
26
+ # Healthcheck (optional)
27
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
28
 
29
+ # Launch the app
30
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]