Skip to content

Build failed : package.json does not exist #2

@EzhnoFR

Description

@EzhnoFR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions