diff --git a/images/tailscale-derp/Dockerfile b/images/tailscale-derp/Dockerfile index 3a834cb..58b603a 100644 --- a/images/tailscale-derp/Dockerfile +++ b/images/tailscale-derp/Dockerfile @@ -4,11 +4,6 @@ ARG VERSION=main RUN apk add git -RUN apk add tailscale - RUN go install tailscale.com/cmd/derper@${VERSION} -COPY init.sh /init.sh -RUN chmod +x /init.sh - -ENTRYPOINT [ "/init.sh" ] \ No newline at end of file +ENTRYPOINT [ "/go/bin/derper" ] \ No newline at end of file diff --git a/images/tailscale-derp/init.sh b/images/tailscale-derp/init.sh deleted file mode 100644 index eba8844..0000000 --- a/images/tailscale-derp/init.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -#Start tailscaled and connect to tailnet -/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state &> /var/lib/tailscale/tailscaled_initial.log & -/usr/bin/tailscale up --accept-routes=true --accept-dns=true --auth-key $TAILSCALE_AUTH_KEY --hostname $TAILSCALE_HOSTNAME &> /var/lib/tailscale/tailscale_onboard.log & - -#Start Tailscale derp server -/root/go/bin/derper --hostname=$TAILSCALE_DERP_HOSTNAME --a=$TAILSCALE_DERP_ADDR --verify-clients=$TAILSCALE_DERP_VERIFY_CLIENTS \ No newline at end of file