2 ms·
One annoying thing you'll need to add before this is production-ready is configurable environment config, so that you can deploy the same container for your sta
by theptip 9y ago
One annoying thing you'll need to add before this is production-ready is configurable environment config, so that you can deploy the same container for your staging vs. production version of the app.
I use a `patch.sh` as the ENTRYPOINT, which says something like
echo $API_URL >> /usr/local/nginx/html/config.js
echo $OTHER_CONFIG > /usr/local/nginx/html/config.js
...
exec nginx
Though there may be other ways to achieve this as well.