caddy-nodejs-docker-tutorial icon indicating copy to clipboard operation
caddy-nodejs-docker-tutorial copied to clipboard

Build failed : package.json does not exist

Open EzhnoFR opened this issue 3 years ago • 0 comments

First of all thank you for the tutorial. I'm trying to reproduce your steps with my own git repo but the build won't execute because of this :

Step 1/9 : FROM node:14-alpine ---> 33deb4de1d99 Step 2/9 : ADD package.json /tmp/package.json ADD failed: file not found in build context or excluded by .dockerignore: stat package.json: file does not exist ERROR: Service 'node-app' failed to build : Build failed

I don't really understand why I've got this problem. My app folder on my server is the following : Caddyfile Dockerfile deploy.sh docker-compose.yml MyRepoFolder Is the configuration good ? The package.json exist in my git repository.

Thank you

EzhnoFR avatar Oct 12 '22 09:10 EzhnoFR