diff --git a/Dockerfile b/Dockerfile index 5e2e6eb..5dbee75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM debian:12 +FROM nginxinc/nginx-unprivileged:stable-bookworm LABEL org.opencontainers.image.authors="me@kurocon.nl" LABEL org.opencontainers.image.source="https://git.kurocon.nl/KuroNET/munin-docker" LABEL org.opencontainers.image.description="Munin image with Docker binaries" RUN apt-get update -qq && RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive \ - apt-get install -y -qq cron munin nginx wget libcgi-fast-perl curl && \ + apt-get install -y -qq munin wget curl && \ mkdir -p /var/run/munin && chown -R munin:munin /var/run/munin && \ echo "includedir /etc/munin/munin-conf.d" > /etc/munin/munin.conf @@ -15,6 +15,4 @@ VOLUME /var/run/munin VOLUME /var/cache/munin VOLUME /etc/munin/munin.conf.d -EXPOSE 80 - -CMD ["/usr/sbin/munin-node"] +CMD ["nginx" "-g" "daemon off;"]