Description
In order to deploy the frontend application with Docker, we need to create an optimized Dockerfile to build the application. The build should be done automatically by GitHub actions.
Technical requirements
- Create a build.Dockerfile that creates an production ready Docker image.
- Apply multi stage builds to optimize the build steps.
- Change the finale user to a scoped user (not root) for security reasons.
- Make the final image NGINX independent, so we can easily start containers to different infrastructure setups (think about cloud platforms). In those cases, a different NGINX setup may be more efficient.
Description
In order to deploy the frontend application with Docker, we need to create an optimized Dockerfile to build the application. The build should be done automatically by GitHub actions.
Technical requirements