Feature: faster healthcheck, fix #283

This commit is contained in:
Quentin McGaw
2020-12-30 19:34:11 +00:00
parent 6f3a074e00
commit 11338b6382
4 changed files with 84 additions and 18 deletions

View File

@@ -118,7 +118,7 @@ ENV VPNSP=pia \
UPDATER_PERIOD=0
ENTRYPOINT ["/entrypoint"]
EXPOSE 8000/tcp 8888/tcp 8388/tcp 8388/udp
HEALTHCHECK --interval=10m --timeout=10s --start-period=30s --retries=2 CMD /entrypoint healthcheck
HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=1 CMD /entrypoint healthcheck
RUN apk add -q --progress --no-cache --update openvpn ca-certificates iptables ip6tables unbound tzdata && \
rm -rf /var/cache/apk/* /etc/unbound/* /usr/sbin/unbound-* && \
deluser openvpn && \