score:0

for development purpose, just use npm start which uses react-scripts to run and watch your application for changes.

to deploy your application using docker, you can use static files server like serve in docker. use dockerfile below.

from node:8-alpine

run npm install serve -g

copy build/ .

expose 5000

cmd ["serve", "-s", "."]

before you build the image, run npm run build to produce a production ready distribution - which is a collection of all files in build folder of your project

for more details on how to deploy react app created with create-react-app create-react-app docs

score:0

you need to add the -it flag to run the container in interactive mode (keep stdin open and allocate a pseudo-tty):

docker run -it container_id

this is caused due to recent update in the create react app library and adding this flag should resolve your issue.


Related Query

More Query from same tag