-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from entrypoint to cmd to allow overriding (#249)
- Add a script that copies an environment variable `SETTINGS` to the `settings.env.json` file for use as appsettings - Update Dockerfile to include the script above - Change the permissions of the `config` directory so that the startup script can write the `settings.env.json` file
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
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
File renamed without changes.
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,4 @@ | ||
#!/bin/sh | ||
set -e | ||
echo $SETTINGS > /usr/share/nginx/html/assets/config/settings.env.json | ||
nginx -g "daemon off;" |