113 lines
4.3 KiB
Docker
113 lines
4.3 KiB
Docker
FROM alpine:3.11 AS builder
|
|
|
|
ENV NC_VERSION=18.0.2
|
|
ENV NC_SHA256_SUM=d033660923dd27106ec64bff0e3afa2f595bd1b9661b7ea7882a1a33006ecb81
|
|
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
|
|
|
|
ENV TFA_VERSION=v4.1.2
|
|
ENV TFA_SHA256_SUM=b66831ec4fc8cbb10e594b25ec12e90b99e0d41d3d1c1c29544bd9a81e73c470
|
|
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
|
|
|
|
ENV U2F_VERSION=v5.0.2
|
|
ENV U2F_SHA256_SUM=064739e29140d8f7197bbc0cf46090218e84e97bc9c15b4a4716ae27d8d76bdc
|
|
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
|
|
|
|
ENV POLLS_VERSION=v1.3.0
|
|
ENV POLLS_SHA256_SUM=5b6038251cef4f1ff0c8300c5b3961436be673734e87cb253c475e34f44fe5cb
|
|
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
|
|
|
|
ENV CONTACTS_VERSION=v3.2.0
|
|
ENV CONTACTS_SHA256_SUM=ff982162430c7a0b1295dfc6df733d7967426342be0019140c8827e2a3183865
|
|
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
|
|
|
|
ENV CALENDAR_VERSION=v2.0.2
|
|
ENV CALENDAR_SHA256_SUM=b2599d581ccd14452b2dce3ce3ca8d5ed431a8be552552419d01113e780c8c58
|
|
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
|
|
|
|
ENV TASKS_VERSION=v0.12.1
|
|
ENV TASKS_SHA256_SUM=60ad47036aed704344e8b5eb5b94a5437839606505c1347b6ec14e746d468158
|
|
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
|
|
|
|
ENV NOTES_VERSION=3.1.5
|
|
ENV NOTES_SHA256_SUM=cf1d19c52847ab8941b7e6e76705e846fca20c66374b78527e6a4569263aee88
|
|
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
|
|
|
|
ENV NEWS_VERSION=14.1.3
|
|
ENV NEWS_SHA256_SUM=882874518e21c310416d5239fc3e268612fbcc54210168bf99f53b630cc59eb1
|
|
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
|
|
|
|
FROM thallian/php7-fpm:latest
|
|
|
|
COPY --from=builder /var/lib/nextcloud /var/lib/nextcloud
|
|
|
|
ENV FPMUSER=nginx
|
|
ENV FPMGROUP=nginx
|
|
ENV PHP_MEMORY_LIMIT=512M
|
|
|
|
RUN apk add --no-cache \
|
|
nginx \
|
|
ffmpeg \
|
|
php7-cli \
|
|
php7-pecl-apcu \
|
|
php7-opcache \
|
|
php7-pcntl \
|
|
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
|
|
|
|
RUN chown -R nginx:nginx /var/lib/nextcloud
|
|
|
|
RUN mkdir /run/nginx
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
ADD /rootfs /
|
|
|
|
VOLUME [ "/var/lib/nextcloud/data", "/var/lib/nextcloud/config" ]
|