FROM debian:stable-slim # update package manager RUN apt-get update -y && \ apt-get upgrade -y && \ apt-get dist-upgrade -y && \ apt-get -y autoremove && \ apt-get clean # install required packages RUN apt-get -y install \ distcc-pump \ ccache \ clang \ curl \ gcc \ g++ \ build-essential # cleanup RUN apt-get autoremove -y # create distcc user RUN groupadd --gid 1000 distcc && \ useradd -rm -d /tmp -s /bin/bash -g distcc -G distcc -u 1000 distcc EXPOSE 3632/tcp 3633/tcp #HEALTHCHECK --interval=5m --timeout=3s \ # CMD curl -f http://127.0.0.1:3633/ || exit 1 ENTRYPOINT [ "distccd", "--daemon", "--no-detach", "--user", "distcc", "--port", "3632", "--stats", "--stats-port", "3633", "--log-level", "info", "--log-stderr", "--listen", "0.0.0.0", "--allow", "0.0.0.0/0", "--enable-tcp-insecure" ]