I have created a Dockerfile image with an easy react app boilerplate result of npx create-react-app my-app
FROM node
WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
EXPOSE 4000
CMD "npm" "start
Everything worked fine and created the image, started the container, no errors but cannot open on localhost, does anybody know what could be the problem ?
I have used docker run -p 4000:4000 -it react-repo
to start the container.