tailscale/Dockerfile
Seán C McCord 2978df649d
version bump: 1.10.2
Signed-off-by: Seán C McCord <ulexus@gmail.com>
2021-07-22 16:23:08 -07:00

26 lines
659 B
Docker

FROM alpine:3.13 AS build
ARG CHANNEL=stable
ARG VERSION=1.10.2
ARG ARCH=amd64
RUN mkdir /build
WORKDIR /build
RUN apk add --no-cache curl tar
RUN curl -vsLo tailscale.tar.gz "https://pkgs.tailscale.com/${CHANNEL}/tailscale_${VERSION}_${ARCH}.tgz" && \
tar xvf tailscale.tar.gz && \
mv "tailscale_${VERSION}_${ARCH}/tailscaled" . && \
mv "tailscale_${VERSION}_${ARCH}/tailscale" .
FROM alpine:3.11
# Tailscaled depends on iptables (for now)
RUN apk add --no-cache iptables
COPY --from=build /build/tailscale /usr/bin/
COPY --from=build /build/tailscaled /usr/bin/
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]