Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6159

Nodemon on Docker container gets "Permission denied"

$
0
0

I have a Node.js server inside a Docker container that uses Nodemon. On my Windows 10 machine everything is working perfectly, however when I try to install it with docker-compose on Ubuntu I get the following error:

/usr/local/bin/docker-entrypoint.sh: exec: line 8: /usr/src/app/node_modules/.bin/nodemon: Permission denied

I have found out that Nodemon sometimes does this and a solution would be to install it globally using sudo. I have done that and I've also tried running an npm install of Nodemon before copying package.json in the Dockerfile but it didn't work. Also, there doesn't seem to be any docker-entrypoint.sh at that location.

Here is my Dockerfile:

FROM node:10.16-alpineRUN mkdir -p /usr/src/appWORKDIR /usr/src/appCOPY package*.json ./RUN npm installCOPY . .EXPOSE 8080CMD ["npm","start"]

Viewing all articles
Browse latest Browse all 6159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>