[GH-ISSUE #129] Cannot build image from dockerfile #32

Closed
opened 2026-02-27 04:58:49 +03:00 by kerem · 3 comments
Owner

Originally created by @seemebreakthis on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/129

I see this when I try to build docker image and container:

root@machine # docker build -t whasync .
Sending build context to Docker daemon  3.072kB
Step 1/31 : FROM node:20-alpine AS web-build
20-alpine: Pulling from library/node
96526aa774ef: Pull complete
a78c46279494: Pull complete
b0147fefb4fa: Pull complete
e6b541644ba7: Pull complete
Digest: sha256:2a3288a397c721c12f0743b197b9a040e278c10d38f806b3c0023d9e2e06e111
Status: Downloaded newer image for node:20-alpine
 ---> 44fa888c2209
Step 2/31 : WORKDIR /app/web
 ---> Running in 71f84e7b407a
Removing intermediate container 71f84e7b407a
 ---> e29171dfd094
Step 3/31 : COPY ["web/package.json", "web/package-lock.json*", "./"]
COPY failed: file not found in build context or excluded by .dockerignore: stat web/package.json: file does not exist
Originally created by @seemebreakthis on GitHub (Nov 16, 2023). Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/129 I see this when I try to build docker image and container: ```` root@machine # docker build -t whasync . Sending build context to Docker daemon 3.072kB Step 1/31 : FROM node:20-alpine AS web-build 20-alpine: Pulling from library/node 96526aa774ef: Pull complete a78c46279494: Pull complete b0147fefb4fa: Pull complete e6b541644ba7: Pull complete Digest: sha256:2a3288a397c721c12f0743b197b9a040e278c10d38f806b3c0023d9e2e06e111 Status: Downloaded newer image for node:20-alpine ---> 44fa888c2209 Step 2/31 : WORKDIR /app/web ---> Running in 71f84e7b407a Removing intermediate container 71f84e7b407a ---> e29171dfd094 Step 3/31 : COPY ["web/package.json", "web/package-lock.json*", "./"] COPY failed: file not found in build context or excluded by .dockerignore: stat web/package.json: file does not exist ````
kerem closed this issue 2026-02-27 04:58:49 +03:00
Author
Owner

@guyzyl commented on GitHub (Nov 17, 2023):

Are you trying to build the combined Dockerfile (in the root directory of the project), or the separate images for the backend/frontend?
If you're trying to build one of the separate ones, check this out: github.com/guyzyl/whatsapp-contact-sync@dc1770d0af/README.md (L88-L93)

<!-- gh-comment-id:1816378409 --> @guyzyl commented on GitHub (Nov 17, 2023): Are you trying to build the combined [`Dockerfile`](https://github.com/guyzyl/whatsapp-contact-sync/blob/main/Dockerfile) (in the root directory of the project), or the separate images for the backend/frontend? If you're trying to build one of the separate ones, check this out: https://github.com/guyzyl/whatsapp-contact-sync/blob/dc1770d0afa91b75eceabfd73010c62d221c1e56/README.md?plain=1#L88-L93
Author
Owner

@seemebreakthis commented on GitHub (Nov 18, 2023):

Yes turned out I made a really silly mistake of doing it in the wrong directory. My bad. Thanks for responding.

<!-- gh-comment-id:1817446222 --> @seemebreakthis commented on GitHub (Nov 18, 2023): Yes turned out I made a really silly mistake of doing it in the wrong directory. My bad. Thanks for responding.
Author
Owner

@guyzyl commented on GitHub (Nov 18, 2023):

No worries, glad I could help!

<!-- gh-comment-id:1817453842 --> @guyzyl commented on GitHub (Nov 18, 2023): No worries, glad I could help!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#32
No description provided.