Created
January 7, 2026 20:44
-
-
Save miguelrios/c87e18bad636dbd33302d4e6bbb2594e to your computer and use it in GitHub Desktop.
golink Alpine Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.23-alpine AS builder | |
| RUN apk add --no-cache git | |
| ENV GOTOOLCHAIN=auto | |
| WORKDIR /app | |
| RUN git clone https://github.com/tailscale/golink.git . | |
| RUN CGO_ENABLED=0 go build -o /golink ./cmd/golink | |
| FROM alpine:latest | |
| RUN apk add --no-cache ca-certificates tzdata | |
| COPY --from=builder /golink /golink | |
| EXPOSE 80 | |
| ENTRYPOINT ["/golink"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment