# hadolint ignore=DL3006 FROM registry.shore.co.il/httpd:bookworm USER root # hadolint ignore=DL3008,DL3015 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ cgit \ groff-base \ patch \ python3-docutils \ python3-markdown \ python3-pygments \ && \ a2enmod cgid && \ a2enconf cgit && \ install -d -o www-data -g www-data -m 755 /var/cache/cgit && \ rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* COPY --chown=root:root patch.diff /root/ COPY --chown=root:root cgitrc /etc/ RUN patch --strip 0 --verbose --directory /etc/apache2 --input /root/patch.diff && \ apache2 -t USER www-data