tinyrelayfile
tinyrelay/deploy/Tailscale.Dockerfile/

deploy/Tailscale.Dockerfile raw
1# Builds the official Tailscale v1.102.3 source at its verified commit with the
2# narrow PortlistServices eventbus fix. Upstream issue: #18297.
3
4FROM golang:1.26-alpine AS build
5ARG TAILSCALE_COMMIT=53a0d659afa51835dd7a9283873cca44261454f8
6ARG VERSION_LONG=1.102.3
7ARG VERSION_SHORT=1.102.3
8ARG VERSION_GIT_HASH=53a0d659afa51835dd7a9283873cca44261454f8
9WORKDIR /go/src/tailscale
10RUN apk add --no-cache git ca-certificates
11RUN git init . \
12 && git remote add origin https://github.com/tailscale/tailscale.git \
13 && git fetch --depth=1 origin ${TAILSCALE_COMMIT} \
14 && git checkout --detach ${TAILSCALE_COMMIT}
15COPY tailscale-portlist.patch /tmp/tailscale-portlist.patch
16RUN git apply /tmp/tailscale-portlist.patch
17RUN go mod download
18RUN go install \
19 github.com/aws/aws-sdk-go-v2/aws \
20 github.com/aws/aws-sdk-go-v2/config \
21 gvisor.dev/gvisor/pkg/tcpip/adapters/gonet \
22 gvisor.dev/gvisor/pkg/tcpip/stack \
23 golang.org/x/crypto/ssh \
24 golang.org/x/crypto/acme \
25 github.com/coder/websocket \
26 github.com/mdlayher/netlink
27ARG TARGETARCH
28RUN GOARCH=${TARGETARCH} go install \
29 -tags=ts_kube,ts_package_container \
30 -ldflags="-X tailscale.com/version.longStamp=${VERSION_LONG} -X tailscale.com/version.shortStamp=${VERSION_SHORT} -X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" \
31 ./cmd/tailscale ./cmd/tailscaled ./cmd/containerboot
32
33# Keep the official container filesystem, entry command, and runtime support.
34FROM tailscale/tailscale@sha256:8c42c4574ab066384fcb72f69e086a2ff1dd3652eb6f56856cee34bcf0d2f680
35COPY --from=build /go/bin/* /usr/local/bin/

About

ownerc01503e8035f
visibilitypublic
headd730679639bf

Maintainers

  • c01503e8035f owner
  • ba1b5beed5b5 agent hermes

Clone

  • https://012.run/npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5/tinyrelay.git

Refs