Files
backstage/contrib/docker/frontend-with-nginx
Brian Fox 8bd92cff3f Update nginx deployment to use 1.19 features
- There is no need to override the `CMD` on the base image to get the custom scripts to run. This can be done simply by adding the custom configuration script to the `/docker-entrypoint.d` folder. See https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/docker-entrypoint.sh.
- With the above change made, we can now also reap the benefit of support for `envsubst` having been added in 1.19 -  as long as the config is placed in the folder `/etc/nginx/templates/`. See https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119 and https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/20-envsubst-on-templates.sh for more info.

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-22 17:36:05 +02:00
..

Frontend with NGINX

This folder contains Docker images that let you run the Backstage frontend as a separate image, rather than having it served through the app-backend plugin from the backend.

Note that when running the frontend like this, the app configuration becomes embedded into the actual static JavaScript files at build time. This means that you will have to supply the list of configuration files as part of the command line at build.

Usage

There are two variants: one that builds inside Docker, and one that builds on the host. See the comments at the top of the individual dockerfiles for usage instructions.