From c0f16603c5d8656192b9854bf6c80aede3329059 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Sat, 13 Nov 2021 22:10:58 +0000 Subject: [PATCH] Copy headscale binary in /bin in the container This way, we don't need to alter the PATH --- Dockerfile | 3 +-- Dockerfile.debug | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58c3a38b..0d344268 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,8 @@ RUN test -e /go/bin/headscale # Production image FROM gcr.io/distroless/base-debian11 -COPY --from=build /go/bin/headscale /headscale +COPY --from=build /go/bin/headscale /bin/headscale ENV TZ UTC -ENV PATH / EXPOSE 8080/tcp CMD ["headscale"] diff --git a/Dockerfile.debug b/Dockerfile.debug index 2d99faec..320b5c93 100644 --- a/Dockerfile.debug +++ b/Dockerfile.debug @@ -14,9 +14,8 @@ RUN test -e /go/bin/headscale # Debug image FROM gcr.io/distroless/base-debian11:debug -COPY --from=build /go/bin/headscale /headscale +COPY --from=build /go/bin/headscale /bin/headscale ENV TZ UTC -ENV PATH="/:$PATH" # Need to reset the entrypoint or everything will run as a busybox script ENTRYPOINT []