aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: 335f7d809cf8b268d3250313b22ed8afd44b17a9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                      
                
               
                    




























                                                                                               
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-iconv \
    php7-imap \
    php7-pdo_pgsql \
    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 []