2023-05-02 11:51:30 +02:00
|
|
|
FROM ubuntu:22.04
|
2021-08-08 17:43:06 +01:00
|
|
|
|
2022-03-20 12:33:41 +01:00
|
|
|
ARG TAILSCALE_VERSION=*
|
|
|
|
ARG TAILSCALE_CHANNEL=stable
|
2021-09-20 19:23:18 +01:00
|
|
|
|
2021-08-08 17:43:06 +01:00
|
|
|
RUN apt-get update \
|
2023-05-02 11:51:30 +02: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 17:05:28 +01:00
|
|
|
&& curl -fsSL https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list \
|
2021-08-08 17:43:06 +01:00
|
|
|
&& apt-get update \
|
2023-05-02 11:51:30 +02:00
|
|
|
&& apt-get install -y tailscale=${TAILSCALE_VERSION} \
|
|
|
|
&& apt-get clean \
|
2021-08-08 17:43:06 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|