Skip to content

Commit b870563

Browse files
committed
Make dockerfile production ready
1 parent 440fdad commit b870563

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ docker run \
3636
-e JUMPSTART_API_KEYS=KEYS \
3737
-e TZ=America/New_York \
3838
-e SENTRY_DSN=LINK \
39+
-e GUNICORN_CMD_ARGS="-b=0.0.0.0:5000" \
3940
-v ./secrets:/usr/local/jumpstart/secrets \
4041
-p 5000:5000 \
4142
jumpstart

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ RUN mkdir -p /usr/local/var
1414
RUN chown jumpstart:jumpstart /usr/local/var
1515
USER jumpstart
1616

17-
CMD ["flask", "--app", "jumpstart", "run"]
17+
CMD ["gunicorn", "jumpstart:app"]

0 commit comments

Comments
 (0)