2023-05-02 05:51:30 -04:00
|
|
|
FROM ubuntu:22.04
|
2021-08-08 12:43:06 -04:00
|
|
|
|
2022-03-20 07:33:41 -04:00
|
|
|
ARG TAILSCALE_VERSION=*
|
|
|
|
ARG TAILSCALE_CHANNEL=stable
|
2021-09-20 14:23:18 -04:00
|
|
|
|
2021-08-08 12:43:06 -04:00
|
|
|
RUN apt-get update \
|
2023-05-02 05:51:30 -04:00
|
|
|
&& apt-get install -y gnupg curl ssh dnsutils ca-certificates \
|
|
|
|
&& adduser --shell=/bin/bash ssh-it-user
|
|
|
|
|
|
|
|
# Tailscale is deliberately split into a second stage so we can cash utils as a seperate layer.
|
|
|
|
RUN curl -fsSL https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/ubuntu/focal.gpg | apt-key add - \
|
2022-03-18 12:05:28 -04:00
|
|
|
&& curl -fsSL https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list \
|
2021-08-08 12:43:06 -04:00
|
|
|
&& apt-get update \
|
2023-05-02 05:51:30 -04:00
|
|
|
&& apt-get install -y tailscale=${TAILSCALE_VERSION} \
|
|
|
|
&& apt-get clean \
|
2021-08-08 12:43:06 -04:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|