I'm building a react app and I'm trying to have it run though a docker-compose recipe. I have it working with
docker container run -p 3000:3000 --name node --rm -v "$PWD:/app" --init --workdir /app --entrypoint npm -it node:latest start
Change your docker-compose<\/code> entrypoint to
services:
frontend:
# ...
entrypoint: bash -c "npm run start"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.