Fix nix-shell dev container build errors #30
Labels
No labels
bug
duplicate
enhancement
good first issue
help wanted
question
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/incr#30
Loading…
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?
Two errors when running
dev-upfrom nix-shell:1. Node.js dpkg conflicts during Docker build
The dev
Dockerfileinstalls Node.js via the nodesource script inside the container, which conflicts with Debian's system-packaged node modules (e.g.node-normalize-path,node-corepack,libnode115). Lots of dpkg dependency warnings during the build, though it ultimately succeeds.Fix: clean up the Dockerfile to avoid the conflict — either remove the nodesource install step and use the system Node, or add
apt-get remove -y nodejsbefore the nodesource install to avoid the partial-removal warnings.2. Missing
composer.lockat build timeThe
Dockerfilecopiescomposer.lockbut the file doesn't exist in the repo (likely gitignored or never committed).Fix: either commit
composer.lock, or change theCOPYstep toCOPY composer.json ./and runcomposer installwithout the lockfile, or generate the lockfile and add it to the repo.Files to look at
docker/dev/podman/Dockerfiledocker/dev/podman/docker-compose.yml.gitignore(check ifcomposer.lockis excluded)