Update Dockerfile.tailscale

ENV TAILSCALE_PARAM="" # New: Allows full customization of tailscale up command
ENV TAILSCALE_AUTH_KEY="" # Fallback if TAILSCALE_PARAM is empty/not set
This commit is contained in:
RipleyBooya 2025-02-24 01:37:00 +01:00 committed by GitHub
parent 451c7efcbd
commit 63702a8b08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +1,16 @@
# Use Alpine Linux
FROM alpine:latest
# Install required packages, including `gettext` for `envsubst`
RUN apk add --no-cache openssh-client autossh bash logrotate gettext iptables ip6tables tailscale
# Install required packages
RUN apk add --no-cache openssh-client autossh bash logrotate gettext tailscale
# Define required environment variables
ENV SSH_HOST=""
ENV SSH_USER=""
ENV REMOTE_PORTS=""
ENV LOCAL_PORTS=""
ENV TAILSCALE_AUTH_KEY=""
ENV TAILSCALE_PARAM="" # New: Allows full customization of tailscale up command
ENV TAILSCALE_AUTH_KEY="" # Fallback if TAILSCALE_PARAM is empty/not set
ENV LOGROTATE_FREQUENCY="daily"
ENV LOGROTATE_ROTATE="7"
ENV LOGROTATE_COMPRESS="compress"
@ -17,10 +18,10 @@ ENV LOGROTATE_COMPRESS="compress"
# Create necessary directories
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
RUN mkdir -p /var/log/ssh-tunnel && chmod 777 /var/log/ssh-tunnel
RUN mkdir -p /var/lib/tailscale
RUN mkdir -p /var/lib/tailscale && chmod 700 /var/lib/tailscale
# Copy scripts and logrotate configuration
COPY entrypoint.tailscale.sh /entrypoint.sh
# Copy scripts
COPY entrypoint.sh /entrypoint.sh
COPY logrotate.template /logrotate.template
RUN chmod +x /entrypoint.sh