pia wireguard rotator
Build and Push Docker Images / build-and-push (push) Successful in 56s

This commit is contained in:
2026-06-04 18:29:43 +02:00
parent c58a333a90
commit 2b25780f3e
5 changed files with 272 additions and 0 deletions
@@ -0,0 +1,21 @@
FROM golang:1.23-alpine AS builder
RUN apk add --no-cache git ca-certificates \
&& go install github.com/kylegrantlucas/pia-wg-config@v1.1.1
FROM docker:cli
RUN apk add --no-cache bash ca-certificates tzdata jq
COPY --from=builder /go/bin/pia-wg-config /usr/local/bin/pia-wg-config
COPY rotate.sh entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/rotate.sh /usr/local/bin/entrypoint.sh
ENV TZ=Europe/Brussels
ENV WG_CONFIG_PATH=/config/wireguard/wg0.conf
ENV ROTATOR_STATE_PATH=/config/rotator-state.json
ENV GLUETUN_CONTAINER=m3u-filter-vpn
ENV ROTATE_AT=03:00
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]