2020-03-12 09:06:55 +00:00
|
|
|
FROM alpine:3.11 AS builder
|
2019-03-16 11:41:58 +00:00
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV NC_VERSION=19.0.0
|
|
|
|
ENV NC_SHA256_SUM=d23d429657c5e3476d7e73af1eafc70e42a81cfe2ed65b20655a005724fe0aae
|
2019-03-16 11:41:58 +00:00
|
|
|
RUN wget https://download.nextcloud.com/server/releases/nextcloud-$NC_VERSION.tar.bz2
|
|
|
|
RUN echo "$NC_SHA256_SUM nextcloud-$NC_VERSION.tar.bz2" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir -p /var/lib/nextcloud
|
|
|
|
RUN tar xjf nextcloud-$NC_VERSION.tar.bz2 -C /var/lib/nextcloud --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV TFA_VERSION=v4.1.3
|
|
|
|
ENV TFA_SHA256_SUM=91861cc1ca0557bf72ae976162b819cab944b14241a5417292ec30928d9bc9f6
|
2019-03-16 11:41:58 +00:00
|
|
|
RUN wget https://github.com/nextcloud/twofactor_totp/releases/download/$TFA_VERSION/twofactor_totp.tar.gz
|
|
|
|
RUN echo "$TFA_SHA256_SUM twofactor_totp.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/twofactor_totp
|
|
|
|
RUN tar xzf twofactor_totp.tar.gz -C /var/lib/nextcloud/apps/twofactor_totp --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV U2F_VERSION=v5.1.0
|
|
|
|
ENV U2F_SHA256_SUM=21b74cad4424720772fcd607fa61255da172a0cd78ce974b027118da17d986f2
|
2019-03-16 11:41:58 +00:00
|
|
|
RUN wget https://github.com/nextcloud/twofactor_u2f/releases/download/$U2F_VERSION/twofactor_u2f.tar.gz
|
|
|
|
RUN echo "$U2F_SHA256_SUM twofactor_u2f.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/twofactor_u2f
|
|
|
|
RUN tar xzf twofactor_u2f.tar.gz -C /var/lib/nextcloud/apps/twofactor_u2f --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV POLLS_VERSION=v1.4.3
|
|
|
|
ENV POLLS_SHA256_SUM=a472a381fcf6c67297f98944fcfe6018f97c252c6a7c5c8d43dc4cba7ae9851e
|
2019-03-16 11:41:58 +00:00
|
|
|
RUN wget https://github.com/nextcloud/polls/releases/download/$POLLS_VERSION/polls.tar.gz
|
|
|
|
RUN echo "$POLLS_SHA256_SUM polls.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/polls
|
|
|
|
RUN tar xzf polls.tar.gz -C /var/lib/nextcloud/apps/polls --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV CONTACTS_VERSION=v3.3.0
|
|
|
|
ENV CONTACTS_SHA256_SUM=a012aa42bd9772732efd4df005f795057bf71176b2912f47646792a727ddeaa0
|
2019-06-20 13:24:42 +00:00
|
|
|
RUN wget https://github.com/nextcloud/contacts/releases/download/$CONTACTS_VERSION/contacts.tar.gz
|
|
|
|
RUN echo "$CONTACTS_SHA256_SUM contacts.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/contacts
|
|
|
|
RUN tar xzf contacts.tar.gz -C /var/lib/nextcloud/apps/contacts --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV CALENDAR_VERSION=v2.0.3
|
|
|
|
ENV CALENDAR_SHA256_SUM=89ae16c9d0aec79a0ee78516479a17506b624debcc4d4cf50c36dd538cd2f29e
|
2019-06-20 13:24:42 +00:00
|
|
|
RUN wget https://github.com/nextcloud/calendar/releases/download/$CALENDAR_VERSION/calendar.tar.gz
|
|
|
|
RUN echo "$CALENDAR_SHA256_SUM calendar.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/calendar
|
|
|
|
RUN tar xzf calendar.tar.gz -C /var/lib/nextcloud/apps/calendar --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV TASKS_VERSION=v0.13.1
|
|
|
|
ENV TASKS_SHA256_SUM=043a528e360dbd3debdf4e00ef014fe1f47b0f989e3aba2fefc90ebcc1c11df3
|
2019-06-20 13:24:42 +00:00
|
|
|
RUN wget https://github.com/nextcloud/tasks/releases/download/$TASKS_VERSION/tasks.tar.gz
|
|
|
|
RUN echo "$TASKS_SHA256_SUM tasks.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/tasks
|
|
|
|
RUN tar xzf tasks.tar.gz -C /var/lib/nextcloud/apps/tasks --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV NOTES_VERSION=3.4.0
|
|
|
|
ENV NOTES_SHA256_SUM=70a61817932179114286764a3c5e6aa938737df571884f8c89837b2df9cdfc25
|
2019-06-20 13:24:42 +00:00
|
|
|
RUN wget https://github.com/nextcloud/notes/releases/download/$NOTES_VERSION/notes.tar.gz
|
|
|
|
RUN echo "$NOTES_SHA256_SUM notes.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/notes
|
|
|
|
RUN tar xzf notes.tar.gz -C /var/lib/nextcloud/apps/notes --strip 1
|
|
|
|
|
2020-06-03 16:17:27 +00:00
|
|
|
ENV NEWS_VERSION=14.1.11
|
|
|
|
ENV NEWS_SHA256_SUM=aa479be2dc942e2b286271f7cba6fbaec6ac261fa3b1964cf84edc0aec1fea0f
|
2019-06-20 13:24:42 +00:00
|
|
|
RUN wget https://github.com/nextcloud/news/releases/download/$NEWS_VERSION/news.tar.gz
|
|
|
|
RUN echo "$NEWS_SHA256_SUM news.tar.gz" | sha256sum -c - || exit 1
|
|
|
|
RUN mkdir /var/lib/nextcloud/apps/news
|
|
|
|
RUN tar xzf news.tar.gz -C /var/lib/nextcloud/apps/news --strip 1
|
|
|
|
|
2018-11-26 17:12:41 +00:00
|
|
|
FROM thallian/php7-fpm:latest
|
2016-08-31 12:55:12 +00:00
|
|
|
|
2019-03-16 11:41:58 +00:00
|
|
|
COPY --from=builder /var/lib/nextcloud /var/lib/nextcloud
|
|
|
|
|
|
|
|
ENV FPMUSER=nginx
|
|
|
|
ENV FPMGROUP=nginx
|
2019-03-17 16:46:30 +00:00
|
|
|
ENV PHP_MEMORY_LIMIT=512M
|
2016-11-01 13:40:10 +00:00
|
|
|
|
2017-01-30 12:21:49 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
nginx \
|
2019-03-16 11:41:58 +00:00
|
|
|
ffmpeg \
|
|
|
|
php7-cli \
|
2019-03-17 17:22:10 +00:00
|
|
|
php7-pecl-apcu \
|
2018-01-30 09:47:09 +00:00
|
|
|
php7-opcache \
|
2018-01-30 09:56:04 +00:00
|
|
|
php7-pcntl \
|
2019-03-16 11:41:58 +00:00
|
|
|
php7-imagick \
|
|
|
|
php7-ctype \
|
|
|
|
php7-curl \
|
|
|
|
php7-dom \
|
|
|
|
php7-gd \
|
|
|
|
php7-iconv \
|
|
|
|
php7-xml \
|
|
|
|
php7-json \
|
|
|
|
php7-mbstring \
|
|
|
|
php7-openssl \
|
|
|
|
php7-posix \
|
|
|
|
php7-session \
|
|
|
|
php7-simplexml \
|
|
|
|
php7-xmlreader \
|
|
|
|
php7-xmlwriter \
|
|
|
|
php7-zip \
|
|
|
|
php7-zlib \
|
|
|
|
php7-pdo_pgsql \
|
|
|
|
php7-bz2 \
|
|
|
|
php7-fileinfo \
|
|
|
|
php7-intl \
|
|
|
|
php7-exif \
|
|
|
|
php7-ldap
|
2016-11-01 13:40:10 +00:00
|
|
|
|
2016-08-31 12:55:12 +00:00
|
|
|
RUN chown -R nginx:nginx /var/lib/nextcloud
|
|
|
|
|
|
|
|
RUN mkdir /run/nginx
|
2018-01-29 21:08:27 +00:00
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
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
|
|
|
|
2019-03-16 11:41:58 +00:00
|
|
|
VOLUME [ "/var/lib/nextcloud/data", "/var/lib/nextcloud/config" ]
|