This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the API URL at run time; stop using the deprecated onbuild base img
Provide simple docker image for API devs #1013
- Loading branch information
Showing
3 changed files
with
28 additions
and
17 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
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
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,10 @@ | ||
#!/bin/bash | ||
# | ||
# This short script calls config_from_env.sh to write the config.js with the API_URL take from the environment and then starts the nodejs server. | ||
# See the Dockerfile for further infos. | ||
# | ||
|
||
/usr/src/app/config_from_env.sh > /usr/src/app/config.js && \ | ||
echo "We will run with the following config.js file:" && \ | ||
cat /usr/src/app/config.js && \ | ||
npm start |