35 lines
1.4 KiB
Docker
35 lines
1.4 KiB
Docker
FROM php:7.1-fpm
|
|
LABEL maintainer="Mauro Torrez <mauro@mau.ro>"
|
|
|
|
VOLUME /srv/app/data
|
|
VOLUME /srv/app/plugins
|
|
|
|
ENV DEPS \
|
|
php7.0 php7.0-phar php7.0-curl php7.0-fpm php7.0-json php7.0-xml \
|
|
php7.0-dom php7.0-opcache php7.0-zip php7.0-mysql php7.0-sqlite \
|
|
php7.0-pgsql php7.0-mbstring php7.0-bcmath php7.0-gd php7.0-mcrypt \
|
|
php7.0-ldap php7.0-xml
|
|
|
|
# Install application dependencies
|
|
RUN curl --silent --show-error --fail --location \
|
|
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
|
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
|
|
| tar --no-same-owner -C /usr/bin/ -xz caddy \
|
|
&& chmod 0755 /usr/bin/caddy \
|
|
&& /usr/bin/caddy -version \
|
|
&& apt-get update \
|
|
&& apt-get install -y $DEPS curl --no-install-recommends \
|
|
&& rm -r /var/lib/apt/lists/*
|
|
# && docker-php-ext-install phar curl json zlib xml dom ctype opcache zip iconv \
|
|
# pdo pdo_mysql pdo_sqlite pdo_pgsql mbstring session bcmath \
|
|
# gd mcrypt openssl sockets posix ldap simplexml \
|
|
# && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;
|
|
|
|
ADD src/kanboard /srv/app
|
|
ADD docker/Caddyfile /etc/Caddyfile
|
|
|
|
WORKDIR /srv/app/
|
|
RUN chown -R www-data:www-data /srv/app
|
|
|
|
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]
|