Skip to content

Commit

Permalink
Create default sock path in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed May 10, 2023
1 parent 4c8f8c6 commit f73354b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 2 additions & 0 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f73354b

Please sign in to comment.