2022-03-18 12:05:28 -04:00
|
|
|
FROM golang:latest
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2022-10-26 07:31:30 -04:00
|
|
|
&& apt-get install -y ca-certificates dnsutils git iptables ssh \
|
2022-03-18 12:05:28 -04:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2022-10-26 07:31:30 -04:00
|
|
|
RUN useradd --shell=/bin/bash --create-home ssh-it-user
|
|
|
|
|
2022-03-18 12:05:28 -04:00
|
|
|
RUN git clone https://github.com/tailscale/tailscale.git
|
|
|
|
|
2022-08-16 11:52:59 -04:00
|
|
|
WORKDIR /go/tailscale
|
|
|
|
|
|
|
|
RUN git checkout main
|
2022-03-18 12:05:28 -04:00
|
|
|
|
|
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscale
|
|
|
|
RUN sh build_dist.sh tailscale.com/cmd/tailscaled
|
|
|
|
|
2022-03-18 14:35:09 -04:00
|
|
|
RUN cp tailscale /usr/local/bin/
|
|
|
|
RUN cp tailscaled /usr/local/bin/
|
2022-03-18 12:05:28 -04:00
|
|
|
|
|
|
|
ADD integration_test/etc_embedded_derp/tls/server.crt /usr/local/share/ca-certificates/
|
2022-11-08 10:09:19 -05:00
|
|
|
RUN chmod 644 /usr/local/share/ca-certificates/server.crt
|
2022-03-18 12:05:28 -04:00
|
|
|
|
|
|
|
RUN update-ca-certificates
|