mbecchis commited on
Commit
0016ce1
·
verified ·
1 Parent(s): 7588168

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,18 +1,20 @@
1
- FROM python:3.10
 
 
2
 
3
- # System dependencies for Streamlit + Plotly + Pandas
4
  RUN apt-get update && apt-get install -y \
5
- libgl1 \
6
- libglib2.0-0 \
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
- WORKDIR /app
10
-
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- COPY . .
15
 
16
  EXPOSE 7860
17
 
18
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
 
1
+ FROM python:3.13.5-slim
2
+
3
+ WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
 
11
  COPY requirements.txt .
12
+ RUN pip3 install --no-cache-dir -r requirements.txt
13
 
14
+ COPY . /app
15
 
16
  EXPOSE 7860
17
 
18
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
19
+
20
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]