mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 10:05:19 +00:00
d207c30949
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
25 lines
650 B
Docker
25 lines
650 B
Docker
FROM golang:latest
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y ca-certificates dnsutils git iptables ssh \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd --shell=/bin/bash --create-home ssh-it-user
|
|
|
|
RUN git clone https://github.com/tailscale/tailscale.git
|
|
|
|
WORKDIR /go/tailscale
|
|
|
|
RUN git checkout main
|
|
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscale
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscaled
|
|
|
|
RUN cp tailscale /usr/local/bin/
|
|
RUN cp tailscaled /usr/local/bin/
|
|
|
|
ADD integration_test/etc_embedded_derp/tls/server.crt /usr/local/share/ca-certificates/
|
|
RUN chmod 644 /usr/local/share/ca-certificates/server.crt
|
|
|
|
RUN update-ca-certificates
|