2024-02-12 13:53:07 +00:00
|
|
|
# This Dockerfile and the images produced are for testing headscale,
|
|
|
|
# and are in no way endorsed by Headscale's maintainers as an
|
|
|
|
# official nor supported release or distribution.
|
|
|
|
|
2022-03-18 16:05:28 +00:00
|
|
|
FROM golang:latest
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2023-05-02 09:51:30 +00:00
|
|
|
&& apt-get install -y dnsutils git iptables ssh ca-certificates \
|
2022-03-18 16:05:28 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2022-10-26 11:31:30 +00:00
|
|
|
RUN useradd --shell=/bin/bash --create-home ssh-it-user
|
|
|
|
|
2022-03-18 16:05:28 +00:00
|
|
|
RUN git clone https://github.com/tailscale/tailscale.git
|
|
|
|
|
2022-08-16 15:52:59 +00:00
|
|
|
WORKDIR /go/tailscale
|
|
|
|
|
2023-05-02 09:51:30 +00:00
|
|
|
RUN git checkout main \
|
|
|
|
&& sh build_dist.sh tailscale.com/cmd/tailscale \
|
|
|
|
&& sh build_dist.sh tailscale.com/cmd/tailscaled \
|
|
|
|
&& cp tailscale /usr/local/bin/ \
|
|
|
|
&& cp tailscaled /usr/local/bin/
|