docker – Rev 39

Subversion Repositories:
Rev:
FROM debian:bookworm-slim

# add filesystem requirements
ADD rootfs /

# 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 preliminary packages
RUN apt-get install -y \
    coreutils \
    bash \
    curl \
    ca-certificates \
    build-essential \
    distcc \
    autoconf \
    automake \
    libtool \
    zlib1g \
    zlib1g-dev \
    libssl3 \
    libssl-dev \
    supervisor \
    inotify-tools

# compile
WORKDIR /tmp
RUN mkdir -p /tmp/build && \
  curl -o /tmp/build/source.tar.gz "https://mmonit.com/monit/dist/monit-latest.tar.gz" && \
  cd /tmp/build && \
  tar --strip=1 -xf source.tar.gz && \
  export DISTCC_HOSTS="docker1.internal:35001 docker2.internal:35002 docker3.internal:35003" CC="distcc" CXX="distcc g++" && \
  ./configure --without-pam && \
  make -j4 && \
  make install && \
  rm -rf /tmp/build

# remove packages that will not be used
RUN apt-get purge -y \
        curl \
        git \
        build-essential \
        autoconf \
        automake \
        libtool \
        pkgconf && \
    apt-get autoremove -y

EXPOSE 2812

WORKDIR /

ENTRYPOINT [ "supervisord", "-t", "-n", "-c", "/etc/supervisor.conf" ]