From bb62ee191472adfff77e110d77fe6eafbf0a9b65 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 7 Feb 2019 23:00:29 +0100 Subject: Initial commit --- Dockerfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 + +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 [] -- cgit v1.2.3