guyzyl / whatsapp-contact-sync

Easy way to sync between the contact photos on WhatsApp to Google Contacts
https://whasync.com/
Other
190 stars 23 forks source link

Cannot build image from dockerfile #129

Closed seemebreakthis closed 1 year ago

seemebreakthis commented 1 year ago

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
guyzyl commented 1 year ago

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: https://github.com/guyzyl/whatsapp-contact-sync/blob/dc1770d0afa91b75eceabfd73010c62d221c1e56/README.md?plain=1#L88-L93

seemebreakthis commented 1 year ago

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

guyzyl commented 1 year ago

No worries, glad I could help!