nextcloud/Dockerfile
Sebastian Hugentobler bc1f71fdf6 update to nextcloud 11
2017-01-30 13:21:49 +01:00

54 lines
977 B
Docker

FROM quay.io/thallian/php7-fpm:latest
ENV FPMUSER nginx
ENV FPMGROUP nginx
ENV VERSION 11.0.1
RUN apk add --no-cache \
libressl \
tar \
nginx \
postgresql-client \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-gd \
php7-iconv \
php7-json \
php7-xml \
php7-xmlreader \
php7-zlib \
php7-zip \
php7-pgsql \
php7-pdo_pgsql \
php7-openssl \
php7-ftp \
php7-session \
php7-mbstring \
php7-posix \
php7-pcntl \
php7-mcrypt \
php7-bz2 \
php7-exif \
php7-apcu \
php7-ldap
RUN ln -s /usr/bin/php7 /usr/bin/php
RUN mkdir /var/lib/nextcloud
RUN wget -qO- https://download.nextcloud.com/server/releases/nextcloud-$VERSION.tar.bz2 | tar xj -C /var/lib/nextcloud --strip 1
WORKDIR /var/lib/nextcloud/
RUN chown -R nginx:nginx /var/lib/nextcloud
RUN chmod +x /var/lib/nextcloud/occ
RUN mkdir /run/nginx
RUN apk del tar
ADD /rootfs /
VOLUME /var/lib/nextcloud/data