Skip to content

Commit

Permalink
3 switching dockerfile from CMD to ENTRYPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjy committed Oct 2, 2023
1 parent 2b232b0 commit e9b99e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ COPY . .
ARG PORT=5000
EXPOSE $PORT

CMD bash entrypoint.sh
ENTRYPOINT [ "bash", "entrypoint.sh"]


2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

echo "Running webstrcontainer with parameters: DATABASE_URL='${DATABASE_URL:-0}' WEBSTR_DATABASE_DATA_UPGRADE='${WEBSTR_DATABASE_DATA_UPGRADE:-0}'"

if [ ${WEBSTR_DATABASE_MIGRATE:-0} == "True" ]
then
echo "Running database upgrade ${DATABASE_URL}"
Expand Down

0 comments on commit e9b99e5

Please sign in to comment.