Update Dockerfile
This commit is contained in:
parent
f9a7a72f6e
commit
af970555d1
23
Dockerfile
23
Dockerfile
@ -1,6 +1,16 @@
|
|||||||
FROM thallian/php7-fpm:latest
|
FROM thallian/php7-fpm:latest
|
||||||
|
|
||||||
|
ENV FPMUSER nginx
|
||||||
|
ENV FPMGROUP nginx
|
||||||
|
|
||||||
|
ENV VERSION 10.0.1
|
||||||
|
|
||||||
RUN apk add --no-cache openssl tar nginx postgresql-client
|
RUN apk add --no-cache openssl tar nginx postgresql-client
|
||||||
|
|
||||||
|
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main/ --allow-untrusted \
|
||||||
|
libressl2.4-libcrypto \
|
||||||
|
libressl2.4-libssl
|
||||||
|
|
||||||
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
|
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
|
||||||
php7 \
|
php7 \
|
||||||
php7-ctype \
|
php7-ctype \
|
||||||
@ -9,7 +19,6 @@ RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/comm
|
|||||||
php7-gd \
|
php7-gd \
|
||||||
php7-iconv \
|
php7-iconv \
|
||||||
php7-json \
|
php7-json \
|
||||||
php7-ldap \
|
|
||||||
php7-xml \
|
php7-xml \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-zlib \
|
php7-zlib \
|
||||||
@ -25,7 +34,7 @@ RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/comm
|
|||||||
php7-mcrypt \
|
php7-mcrypt \
|
||||||
php7-bz2 \
|
php7-bz2 \
|
||||||
php7-exif \
|
php7-exif \
|
||||||
php7-imap
|
php7-ldap
|
||||||
|
|
||||||
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
|
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
|
||||||
php7-apcu
|
php7-apcu
|
||||||
@ -33,15 +42,17 @@ RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/test
|
|||||||
RUN ln -s /usr/bin/php7 /usr/bin/php
|
RUN ln -s /usr/bin/php7 /usr/bin/php
|
||||||
|
|
||||||
RUN mkdir /var/lib/nextcloud
|
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 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 chown -R nginx:nginx /var/lib/nextcloud
|
||||||
RUN chmod +x /var/lib/nextcloud/occ
|
RUN chmod +x /var/lib/nextcloud/occ
|
||||||
|
|
||||||
RUN mkdir /run/nginx
|
RUN mkdir /run/nginx
|
||||||
|
|
||||||
|
RUN apk del tar
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
|
||||||
ENV FPMUSER nginx
|
|
||||||
ENV FPMGROUP nginx
|
|
||||||
|
|
||||||
VOLUME /var/lib/nextcloud/data
|
VOLUME /var/lib/nextcloud/data
|
||||||
|
Loading…
Reference in New Issue
Block a user