First, why are you trying to run an app in VS Code in a container? Normally you are just going to run a React application on a host within a container. You usually just create a production build and then that gets exported to your container and you run it outside of an IDE.