Skip to content

Commit 301dfd6

Browse files
author
Michael Becker
committed
Fix heroku deploy
1 parent c618293 commit 301dfd6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM python:3.7.7-slim-buster
22
ENV PARAMETERS=./defaults/webapp.cfg
3+
ENV PORT=8000
34
WORKDIR /app
45
COPY README.md .
56
COPY setup.cfg .
@@ -10,6 +11,4 @@ COPY defaults defaults
1011
COPY src src
1112
COPY st_app.py st_app.py
1213
RUN pip install -q .
13-
14-
CMD ["streamlit", "run", "st_app.py"]
15-
14+
CMD STREAMLIT_SERVER_PORT=$PORT streamlit run st_app.py

heroku.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
build:
22
docker:
3-
web: Dockerfile.dash
3+
web: Dockerfile
44
config:
55
PORT: ${PORT}

0 commit comments

Comments
 (0)