Skip to content

Commit e78acb5

Browse files
committed
Update Dockerfile.prod to use entrypoint-heroku.sh
1 parent 9944018 commit e78acb5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile.prod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ EXPOSE ${PORT}
1414

1515
COPY app/ ./
1616

17-
CMD ["sh", "-c", "uvicorn main:app --reload --host 0.0.0.0 --port ${PORT}"]
17+
COPY ./entrypoint-heroku.sh .
18+
CHMOD +x ./entrypoint-heroku.sh
19+
20+
CMD ["/entrypoint-heroku.sh"]

entrypoint-heroku.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
uvicorn main:app --host 0.0.0.0 --port ${PORT}

0 commit comments

Comments
 (0)