Copy headscale binary in /bin in the container

This way, we don't need to alter the PATH
This commit is contained in:
Alessandro (Ale) Segala authored and GitHub committed 2021-11-13 22:10:58 +00:00
1 parent f44138c944
commit c0f16603c5
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -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"]
+1 -2
View File
@@ -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 []