mirror of
https://github.com/guyzyl/whatsapp-contact-sync.git
synced 2026-04-25 14:05:48 +03:00
[GH-ISSUE #199] Unable to build backend with Dockerfile #59
Labels
No labels
big-feature
bug
dependencies
duplicate
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whatsapp-contact-sync#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olepl on GitHub (Nov 11, 2024).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/199
When I try to build the Docker image of either the complete app or just the backend I get the following error:
If I simply comment out the highlighted lines (38-40) I can build the image successfully
@guyzyl commented on GitHub (Nov 28, 2024):
I just tried building the image myself and it worked for me.
Can you provide some more details? The full build log, OS + Docker version, and the command you ran to build the image?
(and sorry for the delay)
@olepl commented on GitHub (Nov 28, 2024):
Of course!
Docker: Docker version 27.3.1, build v27.3.1
OS: NixOS 25.05
FYI NixOS is a Linux distro where you declaratively define your packages and configuration. My config can be viewed here. The main difference compared to other Linux systems to be aware of is that NixOS doesn't conform to the FHS.
Command:
docker build -t whasync .ordocker build -t whasync-backend -f server/Dockerfile .as described in your README, both produce the following output with just the line numbers for the highlighted lines changed:Clearly those 3 lines are a problem for some reason, and as mentioned I can comment the lines out and build the image successfully.
What is the purpose of those lines, are you able build the image without those lines?
@guyzyl commented on GitHub (Dec 5, 2024):
With 0 knowledge (or testing) of Nix, from your statement it sounds like the lack of FHS is what's causing it.
And in regard to the 3 lines, the purpose is to cleanup packages from the Docker image.
You can remove them locally if you'd like and it should still work as intended.