Skip to content

Instantly share code, notes, and snippets.

@miguelrios
Created January 7, 2026 20:44
Show Gist options
  • Select an option

  • Save miguelrios/c87e18bad636dbd33302d4e6bbb2594e to your computer and use it in GitHub Desktop.

Select an option

Save miguelrios/c87e18bad636dbd33302d4e6bbb2594e to your computer and use it in GitHub Desktop.
golink Alpine Dockerfile
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