containers/uptime-kuma-tailscale/Dockerfile
Peter Cai 7514a43574
Some checks failed
/ build-image (push) Failing after 15m7s
uptime-kuma: Uprev
* And make tailscale non-blocking
2024-02-17 13:45:16 -05:00

22 lines
872 B
Docker

# Uptime Kuma image with an ephemeral Tailscale daemon included
# Used on fly.io because it does not support sidecar containers
# The tailscale ephemeral key should be provided via the env variable TAILSCALE_KEY
# custom tailscale control plane can be specified with TAILSCALE_SERVER
FROM docker.io/louislam/uptime-kuma:1.23.11
# Default tailscale login server
ENV TAILSCALE_SERVER=https://controlplane.tailscale.com
ENV TAILSCALE_HOSTNAME=uptime-kuma
RUN apt update && apt install -y curl bash iptables
RUN curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg
RUN curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list
RUN apt update && apt install -y tailscale
COPY run.sh /
RUN chmod +x /run.sh
CMD [ "/run.sh" ]