Welcome to Codeching channel. In this tutorial I will show you how to create a React application and run it in a Docker Container (Linux). I will show the whole procedure, how to install, configure docker, and how to setup the React app to run in Docker container. We will build a little business logic as well which will use an environment variable. We will create a shell script which will put this environment variable into an env-config.js which will be injected into the public/index.html’s header so we will use this variable in the React application.
You can find the two source file which are mentioned in the video here: https://lebersoftware.hu/wp-content/uploads/2020/01/1-How-to-Dockerize-your-React-application-source.zip