Spaces:
Runtime error
Runtime error
whoops no dockerfile
Browse files- Dockerfile +25 -0
- docker-run.esh +1 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# app/Dockerfile
|
2 |
+
|
3 |
+
FROM python:3.9-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 |
+
&& rm -rf /var/lib/apt/lists/*
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
ADD requirements.txt /app/requirements.txt
|
17 |
+
RUN pip3 install -r requirements.txt
|
18 |
+
|
19 |
+
EXPOSE 8501
|
20 |
+
|
21 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
22 |
+
|
23 |
+
ADD . /app
|
24 |
+
RUN pip3 install streamlit
|
25 |
+
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
docker-run.esh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(run-python "dtach -A /tmp/streamlit docker run -ti --rm -v .:/app -v /tmp:/tmp -p 10.147.17.74:6969:8501 streamlit /usr/local/bin/ipython")
|