mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-26 02:04:53 +09:00
2a76860bdb
tailscale HEAD now requires Go 1.27.1, so the test image build failed
and every integration job skipped.
Same change as f3f6c9822 on main, written against 0.29's Dockerfiles.
20 lines
499 B
Docker
20 lines
499 B
Docker
# For testing purposes only
|
|
|
|
FROM golang:1.27.1-alpine AS build-env
|
|
|
|
WORKDIR /go/src
|
|
|
|
RUN apk add --no-cache git
|
|
ARG VERSION_BRANCH=main
|
|
RUN git clone https://github.com/tailscale/tailscale.git --branch=$VERSION_BRANCH --depth=1
|
|
WORKDIR /go/src/tailscale
|
|
|
|
ARG TARGETARCH
|
|
RUN GOARCH=$TARGETARCH go install -v ./cmd/derper
|
|
|
|
FROM alpine:3.23
|
|
RUN apk add --no-cache ca-certificates iptables iproute2 ip6tables curl
|
|
|
|
COPY --from=build-env /go/bin/* /usr/local/bin/
|
|
ENTRYPOINT [ "/usr/local/bin/derper" ]
|