FROM pingcap/pingcap-base:v1

# basic tools
RUN dnf install -qy \
    "dnf-command(config-manager)" \
    && dnf clean all

# tailscale
RUN dnf config-manager --add-repo "https://pkgs.tailscale.com/stable/fedora/tailscale.repo" && \
    dnf install -y tailscale

COPY bin/jump-pod-agent /jump-pod-agent
ENTRYPOINT ["/jump-pod-agent"]
