best connection
Build and Push Docker Images / build-and-push (push) Successful in 35s

This commit is contained in:
2026-08-14 19:48:19 +02:00
parent 7a5b2ac3bd
commit 22d537a41d
5 changed files with 341 additions and 202 deletions
@@ -7,7 +7,7 @@ RUN apk add --no-cache git ca-certificates \
FROM docker:cli
RUN apk add --no-cache bash ca-certificates tzdata jq python3 py3-pip \
RUN apk add --no-cache bash ca-certificates tzdata python3 py3-pip \
&& python3 -m venv /opt/venv \
&& /opt/venv/bin/pip install --no-cache-dir 'croniter==6.2.4' \
&& apk del py3-pip
@@ -15,14 +15,15 @@ RUN apk add --no-cache bash ca-certificates tzdata jq python3 py3-pip \
ENV PATH="/opt/venv/bin:$PATH"
COPY --from=builder /go/bin/pia-wg-config /usr/local/bin/pia-wg-config
COPY rotate.sh entrypoint.py /usr/local/bin/
COPY rotate.py entrypoint.py /usr/local/bin/
RUN chmod +x /usr/local/bin/rotate.sh /usr/local/bin/entrypoint.py
RUN chmod +x /usr/local/bin/rotate.py /usr/local/bin/entrypoint.py
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_CRON="0 3 * * *"
ENV REGION_SELECT=fastest
ENTRYPOINT ["/opt/venv/bin/python", "/usr/local/bin/entrypoint.py"]