Skip to content

Commit 83463cb

Browse files
Dockerfile.dash
1 parent df49a54 commit 83463cb

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ COPY src src
1212

1313
EXPOSE 8050
1414

15-
# CMD ["streamlit", "run", "src/app.py"]
16-
CMD gunicorn src.dash_app:server --bind 0.0.0.0:8050
15+
CMD ["streamlit", "run", "src/app.py"]
16+
#CMD gunicorn src.dash_app:server --bind 0.0.0.0:8050
1717
#CMD ["sh"]

Dockerfile.dash

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.7.7-slim-buster
2+
3+
COPY .streamlit ~/
4+
5+
COPY ./requirements.txt /app/requirements.txt
6+
7+
WORKDIR /app
8+
9+
RUN pip install -q -r requirements.txt
10+
11+
COPY src src
12+
13+
EXPOSE 8050
14+
15+
# CMD ["streamlit", "run", "src/app.py"]
16+
CMD gunicorn src.dash_app:server --bind 0.0.0.0:8050
17+
#CMD ["sh"]

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

Procfile.streamlit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: streamlit run src/app.py

heroku.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
build:
22
docker:
3-
web: Dockerfile
4-
run:
5-
web: gunicorn src.dash_app:app --bind 0.0.0.0:8050
3+
web: Dockerfile.dash

0 commit comments

Comments
 (0)