In this repository, you will find two posts about best practices when building front-end containers. All posts have code for the three main front-end frameworks: Angular, React and VueJS.
This first article explains everything you need in order to be able to inject environment variables inside your containers.
This article shows you how to take the containers you used in the first post and make them running as a non-root user.