Léo Bourrel commited on
Commit
1b0e8b4
·
1 Parent(s): 244cbec

feat: add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app/Dockerfile
2
+
3
+ FROM python:3.10-slim
4
+
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential \
9
+ curl \
10
+ software-properties-common \
11
+ git \
12
+ libpq-dev \
13
+ gcc \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ COPY ./ /app/
17
+
18
+
19
+ RUN pip3 install -r /app/requirements.txt
20
+
21
+ EXPOSE 7860
22
+
23
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
24
+
25
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]