Spaces:
Running
Running
Alejandro Cremades
commited on
Commit
•
78fc3d9
1
Parent(s):
7cead0e
Add Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
build-essential \
|
7 |
+
curl \
|
8 |
+
software-properties-common \
|
9 |
+
git \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
+
|
12 |
+
RUN git clone https://github.com/alecrem/middleschool-cardlist.git .
|
13 |
+
|
14 |
+
RUN pip3 install -r requirements.txt
|
15 |
+
|
16 |
+
EXPOSE 8501
|
17 |
+
|
18 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
19 |
+
|
20 |
+
ENTRYPOINT ["streamlit", "run", "Middle_School_Card_List.py", "--server.port=8501", "--server.address=0.0.0.0"]
|