mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-25 02:55:29 +00:00
Copy headscale binary in /bin in the container
This way, we don't need to alter the PATH
This commit is contained in:
parent
f44138c944
commit
c0f16603c5
@ -14,9 +14,8 @@ RUN test -e /go/bin/headscale
|
|||||||
# Production image
|
# Production image
|
||||||
FROM gcr.io/distroless/base-debian11
|
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 TZ UTC
|
||||||
ENV PATH /
|
|
||||||
|
|
||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
CMD ["headscale"]
|
CMD ["headscale"]
|
||||||
|
@ -14,9 +14,8 @@ RUN test -e /go/bin/headscale
|
|||||||
# Debug image
|
# Debug image
|
||||||
FROM gcr.io/distroless/base-debian11:debug
|
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 TZ UTC
|
||||||
ENV PATH="/:$PATH"
|
|
||||||
|
|
||||||
# Need to reset the entrypoint or everything will run as a busybox script
|
# Need to reset the entrypoint or everything will run as a busybox script
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
|
Loading…
Reference in New Issue
Block a user