From 30e519d4d57cf2e171e0fa07c2207bf2fa1fbeb3 Mon Sep 17 00:00:00 2001 From: eriknordmark Date: Thu, 14 May 2026 22:11:26 +0200 Subject: [PATCH] Dockerfile.local: place COPY targets under /out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build stage uses WORKDIR /out, but the three COPY directives went to absolute paths at root (/bin, /adam, /bin/adam). The final scratch stage does `COPY --from=build /out/ /`, which only picks up files under /out — so scripts, samples, and the adam binary itself were silently dropped from the image. Result: `make image-local` (documented in README.md as a recommended quick reproducible build path) produces an image without /bin/adam. Running it fails with `"/bin/adam": stat /bin/adam: no such file or directory`. Fix: redirect the COPY destinations to /out/bin/, /out/adam/, and /out/bin/adam so the scratch stage finds them. Signed-off-by: eriknordmark Co-Authored-By: Claude Opus 4.7 --- Dockerfile.local | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.local b/Dockerfile.local index 0226d0e..07a2015 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -3,9 +3,9 @@ ENV PKGS alpine-baselayout RUN eve-alpine-deploy.sh WORKDIR /out -COPY scripts /bin -COPY samples /adam -COPY ./bin/adam-linux-amd64 /bin/adam +COPY scripts /out/bin/ +COPY samples /out/adam/ +COPY ./bin/adam-linux-amd64 /out/bin/adam FROM scratch COPY --from=build /out/ /