This commit is contained in:
@@ -15,9 +15,9 @@ RUN apk add --no-cache bash ca-certificates tzdata python3 py3-pip \
|
|||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
COPY --from=builder /go/bin/pia-wg-config /usr/local/bin/pia-wg-config
|
COPY --from=builder /go/bin/pia-wg-config /usr/local/bin/pia-wg-config
|
||||||
COPY rotate.py entrypoint.py /usr/local/bin/
|
COPY rotate.py entrypoint.py entrypoint.sh /usr/local/bin/
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/rotate.py /usr/local/bin/entrypoint.py
|
RUN chmod +x /usr/local/bin/rotate.py /usr/local/bin/entrypoint.py /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
ENV TZ=Europe/Brussels
|
ENV TZ=Europe/Brussels
|
||||||
ENV WG_CONFIG_PATH=/config/wireguard/wg0.conf
|
ENV WG_CONFIG_PATH=/config/wireguard/wg0.conf
|
||||||
@@ -26,4 +26,4 @@ ENV GLUETUN_CONTAINER=m3u-filter-vpn
|
|||||||
ENV ROTATE_CRON="0 3 * * *"
|
ENV ROTATE_CRON="0 3 * * *"
|
||||||
ENV REGION_SELECT=fastest
|
ENV REGION_SELECT=fastest
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/venv/bin/python", "/usr/local/bin/entrypoint.py"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Compat wrapper: older compose/Portainer configs still exec entrypoint.sh
|
||||||
|
exec /opt/venv/bin/python /usr/local/bin/entrypoint.py "$@"
|
||||||
Reference in New Issue
Block a user