mirror of
https://git.netzspielplatz.de/docker-multiarch/apt-cacher-ng.git
synced 2025-11-08 17:19:36 +00:00
added wget for the added health check
This commit is contained in:
parent
fe417de2e8
commit
ff92cac918
1 changed files with 5 additions and 1 deletions
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue