diff options
author | Dennis Eriksen <dennis@terje.dnns.no> | 2019-02-07 23:00:29 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis@terje.dnns.no> | 2019-02-07 23:00:29 +0100 |
commit | bb62ee191472adfff77e110d77fe6eafbf0a9b65 (patch) | |
tree | 53a07cd036a57c0e5d8c15ae8f53e63d3e48eec2 /Dockerfile | |
download | davical-docker-bb62ee191472adfff77e110d77fe6eafbf0a9b65.tar.gz |
Initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 42 |
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 [] |