Skip to content

Commit

Permalink
chore(docker): add server entypoint script to manage docker secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone committed Aug 17, 2018
1 parent 45b01e1 commit 977d7f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ RUN npm run build \

EXPOSE 3333

ENTRYPOINT ["npm"]
ENTRYPOINT ["./entrypoint.sh"]

CMD ["start"]
7 changes: 7 additions & 0 deletions server/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh -x

if [[ ! -z $SENDGRID_API_KEY_FILE ]]; then
export SENDGRID_API_KEY=$(cat $SENDGRID_API_KEY_FILE)
fi

exec npm "$@"

0 comments on commit 977d7f9

Please sign in to comment.