nextcloud/Dockerfile

48 lines
1.1 KiB
Docker
Raw Normal View History

2016-08-31 12:55:12 +00:00
FROM thallian/php7-fpm:latest
RUN apk add --no-cache openssl tar nginx postgresql-client
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-gd \
php7-iconv \
php7-json \
php7-ldap \
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-imap
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
php7-apcu
RUN ln -s /usr/bin/php7 /usr/bin/php
RUN mkdir /var/lib/nextcloud
RUN wget -qO- https://download.nextcloud.com/server/releases/nextcloud-10.0.0.tar.bz2 | tar xj -C /var/lib/nextcloud --strip 1
RUN chown -R nginx:nginx /var/lib/nextcloud
RUN chmod +x /var/lib/nextcloud/occ
RUN mkdir /run/nginx
ADD /rootfs /
ENV FPMUSER nginx
ENV FPMGROUP nginx
VOLUME /var/lib/nextcloud/data