Reyall commited on
Commit
eaac8e0
·
verified ·
1 Parent(s): 30cc03c

Upload Dockerfile.txt

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