mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-30 03:21:29 +02:00
The client image copied the entrypoint with a bare COPY, so its mode came from whatever the build context held. In a git checkout that is 100755 and the image works. Building from this module's extracted copy in the module cache — which is what a suite in another module now does — every file is 0444, because the cache drops the executable bit, and the container dies on startup with exec: "/usr/local/bin/netbird-entrypoint.sh": permission denied Copy it with --chmod=0755 instead, so the mode is stated rather than inherited. The proxy Dockerfile already does this for /certs, and the build already requires BuildKit. Found by running the terraform provider's suite against images built this way: the combined server and the proxy came up, and every test needing an agent failed on the entrypoint.