2022-03-18 10:05:28 -06:00
|
|
|
FROM golang:latest
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2022-03-20 05:30:08 -06:00
|
|
|
&& apt-get install -y ca-certificates dnsutils git iptables \
|
2022-03-18 10:05:28 -06:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
RUN git clone https://github.com/tailscale/tailscale.git
|
|
|
|
|
|
|
|
WORKDIR tailscale
|
|
|
|
|
|
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscale
|
|
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscaled
|
|
|
|
|
2022-03-18 12:35:09 -06:00
|
|
|
RUN cp tailscale /usr/local/bin/
|
|
|
|
RUN cp tailscaled /usr/local/bin/
|
2022-03-18 10:05:28 -06:00
|
|
|
|
|
|
|
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
|