tgey commited on
Commit
219abb3
·
1 Parent(s): 2145052

dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app/Dockerfile
2
+
3
+ FROM python:3.10.6-slim
4
+
5
+ WORKDIR /app
6
+
7
+ ENV PYTHONPATH=/app:$PYTHONPATH
8
+
9
+ RUN apt-get update && apt-get install -y \
10
+ build-essential \
11
+ curl \
12
+ software-properties-common \
13
+ git \
14
+ locales \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
18
+ locale-gen
19
+
20
+ # Set the locale environment variables
21
+ ENV LANG=fr_FR.UTF-8
22
+ ENV LC_ALL=fr_FR.UTF-8
23
+
24
+ COPY . .
25
+
26
+ RUN pip3 install --upgrade pip
27
+ RUN pip3 install -r requirements.txt
28
+
29
+ EXPOSE 8501
30
+
31
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
32
+
33
+ ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]