Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed : package.json does not exist #2

Open
EzhnoFR opened this issue Oct 12, 2022 · 0 comments
Open

Build failed : package.json does not exist #2

EzhnoFR opened this issue Oct 12, 2022 · 0 comments

Comments

@EzhnoFR
Copy link

EzhnoFR commented Oct 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant