-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): add server entypoint script to manage docker secrets
- Loading branch information
1 parent
45b01e1
commit 977d7f9
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,6 @@ RUN npm run build \ | |
|
||
EXPOSE 3333 | ||
|
||
ENTRYPOINT ["npm"] | ||
ENTRYPOINT ["./entrypoint.sh"] | ||
|
||
CMD ["start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |