From f73354b4f45d6ca41c56e5e3451368703dda94e6 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Wed, 10 May 2023 13:52:44 +0000 Subject: [PATCH] Create default sock path in Docker --- Dockerfile | 2 ++ Dockerfile.debug | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index ef877d6..4d7d6a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,5 +19,7 @@ FROM docker.io/debian:bullseye-slim COPY --from=build /go/bin/headscale /bin/headscale ENV TZ UTC +RUN mkdir -p /var/run/headscale + EXPOSE 8080/tcp CMD ["headscale"] diff --git a/Dockerfile.debug b/Dockerfile.debug index 3a751ec..7cd609c 100644 --- a/Dockerfile.debug +++ b/Dockerfile.debug @@ -18,6 +18,8 @@ FROM docker.io/golang:1.20.0-bullseye COPY --from=build /go/bin/headscale /bin/headscale ENV TZ UTC +RUN mkdir -p /var/run/headscale + # Need to reset the entrypoint or everything will run as a busybox script ENTRYPOINT [] EXPOSE 8080/tcp