added wget for the added health check

This commit is contained in:
Micha Gläß-Stöcker 2020-10-08 14:09:58 +02:00
parent fe417de2e8
commit ff92cac918

View file

@ -10,7 +10,11 @@
FROM debian:stable-slim
VOLUME ["/var/cache/apt-cacher-ng"]
RUN apt-get update && apt dist-upgrade -y && apt-get install -y apt-cacher-ng && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt dist-upgrade -y && apt-get install -y apt-cacher-ng wget && rm -rf /var/lib/apt/lists/*
RUN echo "PassThroughPattern: .*" >> /etc/apt-cacher-ng/zz_debconf.conf
EXPOSE 3142
HEALTHCHECK --interval=10s --timeout=2s --retries=3 \
CMD wget -q -t1 -O /dev/null http://localhost:3142/acng-report.html || exit 1
CMD chmod 777 /var/cache/apt-cacher-ng && /etc/init.d/apt-cacher-ng start && tail -f /var/log/apt-cacher-ng/*