17 lines
352 B
Docker
17 lines
352 B
Docker
#syntax=docker/dockerfile:1
|
|
FROM tailscale/tailscale:latest
|
|
|
|
RUN apk add --no-cache \
|
|
iptables \
|
|
socat \
|
|
curl \
|
|
bash \
|
|
redsocks
|
|
|
|
COPY ./post-rules.sh /post-rules.sh
|
|
COPY ./redsocks.conf /etc/redsocks.conf
|
|
RUN chmod +x /post-rules.sh
|
|
|
|
# Entrypoint to configure and start Tailscale + traffic redirection
|
|
ENTRYPOINT ["/post-rules.sh"]
|