tailscale start daemon
This commit is contained in:
@@ -33,6 +33,15 @@ RUN GOG_VERSION=$(curl -s https://api.github.com/repos/steipete/gogcli/releases/
|
||||
# Install Tailscale
|
||||
RUN curl -fsSL https://tailscale.com/install.sh | HEADLESS=true sh
|
||||
|
||||
# Create tailscale startup script
|
||||
RUN mkdir -p /home/node/.local/bin && \
|
||||
echo '#!/bin/sh' > /home/node/.local/bin/tailscale-start.sh && \
|
||||
echo 'mkdir -p /var/run/tailscale' >> /home/node/.local/bin/tailscale-start.sh && \
|
||||
echo 'tailscaled --socket=/tmp/tailscale.sock --tun=userspace-networking &' >> /home/node/.local/bin/tailscale-start.sh && \
|
||||
echo 'sleep 2' >> /home/node/.local/bin/tailscale-start.sh && \
|
||||
echo 'tailscale --socket=/tmp/tailscale.sock up --authkey=$TAILSCALE_AUTH_KEY' >> /home/node/.local/bin/tailscale-start.sh && \
|
||||
chmod +x /home/node/.local/bin/tailscale-start.sh
|
||||
|
||||
# Copy custom tools into the image
|
||||
COPY tools/* /usr/local/bin/
|
||||
COPY bin/* /usr/local/bin/
|
||||
|
||||
Reference in New Issue
Block a user