FROM debian:11 RUN apt-get update RUN apt-get dist-upgrade RUN apt-get install -y git apache2 rsync wget supervisor WORKDIR /tmp RUN wget https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_linux-amd64.deb RUN dpkg -i hugo_*_linux-amd64.deb RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY builder /usr/local/bin/builder EXPOSE 80 CMD ["/usr/bin/supervisord"]