nextcloud/Dockerfile

73 lines
1.8 KiB
Docker
Raw Normal View History

2016-11-01 15:23:57 +00:00
FROM quay.io/thallian/php7-fpm:latest
2016-08-31 12:55:12 +00:00
2016-11-01 13:40:10 +00:00
ENV FPMUSER nginx
ENV FPMGROUP nginx
ENV VERSION 10.0.1
2016-11-07 09:23:23 +00:00
RUN apk add --no-cache openssl tar nginx postgresql-client libtool g++ make
2016-11-01 13:40:10 +00:00
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main/ --allow-untrusted \
libressl2.4-libcrypto \
libressl2.4-libssl
2016-08-31 12:55:12 +00:00
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-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 \
2016-11-01 13:40:10 +00:00
php7-ldap
2016-08-31 12:55:12 +00:00
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
2016-11-07 09:23:23 +00:00
RUN rm /usr/bin/iconv
RUN mkdir /tmp/iconv
RUN wget -qO- https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz | tar xz -C /tmp/iconv --strip 1
WORKDIR /tmp/iconv
ADD libiconv-1-fixes.patch /tmp/iconv/libiconv-1-fixes.patch
RUN ./configure --prefix=/usr/local
RUN patch -p1 -u < libiconv-1-fixes.patch
RUN make && make install
RUN libtool --finish /usr/local/lib
RUN rm -r /tmp/iconv
ENV LD_PRELOAD /usr/local/lib/preloadable_libiconv.so
2016-08-31 12:55:12 +00:00
RUN mkdir /var/lib/nextcloud
2016-11-01 13:40:10 +00:00
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/
2016-08-31 12:55:12 +00:00
RUN chown -R nginx:nginx /var/lib/nextcloud
RUN chmod +x /var/lib/nextcloud/occ
RUN mkdir /run/nginx
2016-11-07 09:23:23 +00:00
RUN apk del tar libtool g++ make
2016-08-31 12:55:12 +00:00
2016-11-01 13:40:10 +00:00
ADD /rootfs /
2016-08-31 12:55:12 +00:00
VOLUME /var/lib/nextcloud/data