aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..9d49790
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,42 @@
+FROM alpine:3.9
+MAINTAINER Dennis Eriksen <d@ennis.no>
+
+EXPOSE 80
+
+RUN apk update && apk add \
+ apache2 \
+ curl \
+ php7 \
+ php7-apache2 \
+ php7-cgi \
+ php7-curl \
+ php7-imap \
+ php7-pgsql \
+ php7-xml \
+ xz && \
+ rm -rf /var/cache/apk/* && \
+ rm -rf /var/www/localhost
+
+RUN mkdir /run/apache2 && chown -R apache:apache /run/apache2
+
+# awl
+RUN TMPDIR=$(mktemp -d) && cd $TMPDIR \
+ && curl -sL -o awl.tar.xz https://www.davical.org/downloads/awl_0.60.orig.tar.xz \
+ && unxz awl.tar.xz \
+ && tar xf awl.tar \
+ && mkdir /usr/local/share/awl \
+ && cp -a dba inc /usr/local/share/awl/ \
+ && cd / && rm -r $TMPDIR
+
+# davical
+RUN mkdir /var/www/app && cd /var/www/app \
+ && curl -sL -o davical.tar.xz https://www.davical.org/downloads/davical_1.1.8.orig.tar.xz \
+ && unxz davical.tar.xz \
+ && tar xf davical.tar \
+ && chown -R apache:apache /var/www/app
+
+ADD files/ /
+
+ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
+#ENTRYPOINT ["/bin/sh"]
+CMD []