2021-08-09 00:43:06 +08:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
2022-03-20 19:33:41 +08:00
|
|
|
ARG TAILSCALE_VERSION=*
|
|
|
|
ARG TAILSCALE_CHANNEL=stable
|
2021-09-21 02:23:18 +08:00
|
|
|
|
2021-08-09 00:43:06 +08:00
|
|
|
RUN apt-get update \
|
2022-10-26 19:31:30 +08:00
|
|
|
&& apt-get install -y gnupg curl ssh \
|
2022-03-19 00:05:28 +08:00
|
|
|
&& curl -fsSL https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/ubuntu/focal.gpg | apt-key add - \
|
|
|
|
&& curl -fsSL https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list \
|
2021-08-09 00:43:06 +08:00
|
|
|
&& apt-get update \
|
2022-03-06 02:34:06 +08:00
|
|
|
&& apt-get install -y ca-certificates tailscale=${TAILSCALE_VERSION} dnsutils \
|
2021-08-09 00:43:06 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2022-03-06 02:34:06 +08:00
|
|
|
|
2022-10-26 19:31:30 +08:00
|
|
|
RUN adduser --shell=/bin/bash ssh-it-user
|
|
|
|
|
2022-03-06 02:34:06 +08:00
|
|
|
ADD integration_test/etc_embedded_derp/tls/server.crt /usr/local/share/ca-certificates/
|
2022-11-08 23:09:19 +08:00
|
|
|
RUN chmod 644 /usr/local/share/ca-certificates/server.crt
|
2022-03-06 02:34:06 +08:00
|
|
|
|
2022-03-07 03:42:27 +08:00
|
|
|
RUN update-ca-certificates
|