dockerfiles/nextcloud/Dockerfile.daily

65 lines
1.8 KiB
Docker
Raw Normal View History

FROM hoellen/nginx-php:7.2
2016-09-22 17:04:31 +02:00
ENV UID=991 GID=991 \
UPLOAD_MAX_SIZE=10G \
APC_SHM_SIZE=128M \
2016-09-23 00:50:39 +02:00
OPCACHE_MEM_SIZE=128 \
2017-03-22 15:44:07 +01:00
MEMORY_LIMIT=512M \
PHP_MAX_CHILDREN=15 \
PHP_START_SERVERS=2 \
PHP_MIN_SPARE_SERVERS=1 \
PHP_MAX_SPARE_SERVERS=6 \
2016-10-12 10:32:58 +02:00
CRON_PERIOD=15m \
2017-02-15 17:36:36 +01:00
CRON_MEMORY_LIMIT=1g \
2016-10-12 13:54:55 +02:00
TZ=Etc/UTC \
2016-10-12 10:32:58 +02:00
DB_TYPE=sqlite3 \
2017-02-22 02:39:04 +01:00
DOMAIN=localhost
2016-07-01 12:11:22 +02:00
RUN apk -U upgrade \
&& apk add -t build-dependencies \
2017-02-15 17:36:36 +01:00
gnupg \
2016-09-22 17:04:31 +02:00
tar \
build-base \
autoconf \
automake \
2017-02-25 14:03:49 +01:00
pcre-dev \
2016-11-13 14:03:27 +00:00
libtool \
samba-dev \
&& apk add \
2016-10-13 01:15:40 +02:00
libressl \
2016-07-01 12:11:22 +02:00
ca-certificates \
2016-07-30 19:26:07 +02:00
libsmbclient \
2016-10-12 13:54:55 +02:00
tzdata \
&& pecl install \
smbclient \
apcu \
redis \
&& echo "extension=smbclient.so" > /php/conf.d/smbclient.ini \
&& echo "extension=redis.so" > /php/conf.d/redis.ini \
2016-11-13 14:03:27 +00:00
&& mkdir /nextcloud \
&& cd /tmp \
2016-07-01 12:11:22 +02:00
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2 \
2017-02-23 12:54:27 +01:00
&& echo "Verifying checksum of latest.tar.bz2..." \
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2.sha512 \
&& echo "$(cat latest.tar.bz2.sha512 | awk '{print $1;}') latest.tar.bz2" > latest.tar.bz2.sha512 \
&& CHECKSUM_STATE=$(echo -n $(sha512sum -c latest.tar.bz2.sha512) | tail -c 2) \
2017-02-23 12:29:33 +01:00
&& if [ "${CHECKSUM_STATE}" != "OK" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \
2016-07-01 12:11:22 +02:00
&& tar xjf latest.tar.bz2 --strip 1 -C /nextcloud \
2017-04-30 23:49:33 +02:00
&& update-ca-certificates \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/* /tmp/*
2016-07-01 12:11:22 +02:00
COPY rootfs /
2016-07-01 12:11:22 +02:00
2016-09-24 11:48:17 +02:00
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
2016-07-01 12:11:22 +02:00
VOLUME /data /config /apps2 /nextcloud/themes /php/session
2016-07-01 12:11:22 +02:00
2016-09-16 17:08:06 +02:00
EXPOSE 8888
2016-07-01 12:11:22 +02:00
LABEL description="A server software for creating file hosting services" \
nextcloud="Nextcloud daily" \
2017-12-01 23:19:22 +01:00
maintainer="hoellen <info@hoellen.eu>"
2016-07-01 12:11:22 +02:00
2016-09-16 17:08:06 +02:00
CMD ["run.sh"]