DEV Community

loading...

Discussion on: Dockerizing ReactJS, NodeJS, NGINX using Docker

Collapse
manelsanz profile image
manelsanz • Edited

When you say

Open localhost:3000 in the browser and you should be able to see homepage of the react app

How it's this possible? If you run yarn build only, there is not web server!

Collapse
kamilliano profile image
kamilliano

maybe he meant to run it with:

docker run -p 3000:3000 --entrypoint /bin/sh react-frontend -c "npm start"