summaryrefslogtreecommitdiff
path: root/build/templates/Dockerfile.base.erb
diff options
context:
space:
mode:
Diffstat (limited to 'build/templates/Dockerfile.base.erb')
-rw-r--r--build/templates/Dockerfile.base.erb27
1 files changed, 27 insertions, 0 deletions
diff --git a/build/templates/Dockerfile.base.erb b/build/templates/Dockerfile.base.erb
new file mode 100644
index 0000000..55aab66
--- /dev/null
+++ b/build/templates/Dockerfile.base.erb
@@ -0,0 +1,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: