content not from webpack is served from /app/public docker content not from webpack is served from /app/public docker docker docker

content not from webpack is served from /app/public docker


This is an issue with react-scripts@3.4.1. You can follow the issue and see the recommended workarounds via github: https://github.com/facebook/create-react-app/issues/8688

Either try downgrading the version of react-scripts to 3.4.0, or add the following line in your docker-compose file:

stdin_open: true

Setting stdin_open to true in docker will run the container in "interactive mode" which is required to run the react app in development mode.

However in production, you would like to serve your built application using a HTTP server like Apache or Serve. You can see more about deploying a react app via the official documentation: React Deployment

The stdin_open solution was suggested by the following comment: https://github.com/facebook/create-react-app/issues/8688#issuecomment-602110747


Adding the following line to the docker-compose.yml worked for me.

tty: true