FROM debian:buster-slim ENV DEBIAN_FRONTEND=noninteractive ENV PORT 8080 RUN apt-get update && \ apt-get -y upgrade && \ apt-get -y --no-install-recommends install \ apache2 jekyll rake busybox-static mime-support && \ rm -fr /var/lib/apt/lists RUN gem install jekyll-asciidoc -v 2.1.0 RUN a2enmod negotiation headers RUN mkdir -p /var/run/apache2 && rm -fr /var/www/html/* COPY . /usr/src/site/ RUN cp /usr/src/site/build/apache.conf /etc/apache2/sites-enabled/000-default.conf RUN cd /usr/src/site && \ rake build && \ rake check && \ cp -a _site/* /var/www/html # vim: set ft=dockerfile: