summaryrefslogtreecommitdiff
path: root/build/templates/Dockerfile.base.erb
blob: 55aab661e066ccdab26fbaa3f5962ad141bd6c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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: