Sebastian Hugentobler
43a67d252b
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 2m19s
109 lines
4.2 KiB
Docker
109 lines
4.2 KiB
Docker
FROM docker.io/alpine:3.20 AS builder
|
|
|
|
ENV NC_VERSION=30.0.2
|
|
ENV NC_SHA256_SUM=929bb8045e96216fe22a65dcd66279e5bd7ba1abb29d99bf401d423b646a445f
|
|
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 POLLS_VERSION=7.2.1
|
|
ENV POLLS_SHA256_SUM=145d51dded50cf70fe685d947e10824ebae91327ca592315a98e0156305ce8c0
|
|
RUN wget https://github.com/nextcloud/polls/releases/download/v$POLLS_VERSION/polls-$POLLS_VERSION.tar.gz
|
|
RUN echo "$POLLS_SHA256_SUM polls-$POLLS_VERSION.tar.gz" | sha256sum -c - || exit 1
|
|
RUN mkdir /var/lib/nextcloud/apps/polls
|
|
RUN tar xzf polls-$POLLS_VERSION.tar.gz -C /var/lib/nextcloud/apps/polls --strip 1
|
|
|
|
ENV CONTACTS_VERSION=v6.1.1
|
|
ENV CONTACTS_SHA256_SUM=ef9ba92e98a83a98243724abaf7c2d7ce912c1d355a3c5ca60a138c1e5909b00
|
|
RUN wget https://github.com/nextcloud-releases/contacts/releases/download/$CONTACTS_VERSION/contacts-$CONTACTS_VERSION.tar.gz
|
|
RUN echo "$CONTACTS_SHA256_SUM contacts-$CONTACTS_VERSION.tar.gz" | sha256sum -c - || exit 1
|
|
RUN mkdir /var/lib/nextcloud/apps/contacts
|
|
RUN tar xzf contacts-$CONTACTS_VERSION.tar.gz -C /var/lib/nextcloud/apps/contacts --strip 1
|
|
|
|
ENV CALENDAR_VERSION=v5.0.5
|
|
ENV CALENDAR_SHA256_SUM=069dbdbf2bf891145f04d6daa6d5f75255398bdf5f5c8075e7e227810771288c
|
|
RUN wget https://github.com/nextcloud-releases/calendar/releases/download/$CALENDAR_VERSION/calendar-$CALENDAR_VERSION.tar.gz
|
|
RUN echo "$CALENDAR_SHA256_SUM calendar-$CALENDAR_VERSION.tar.gz" | sha256sum -c - || exit 1
|
|
RUN mkdir /var/lib/nextcloud/apps/calendar
|
|
RUN tar xzf calendar-$CALENDAR_VERSION.tar.gz -C /var/lib/nextcloud/apps/calendar --strip 1
|
|
|
|
ENV TASKS_VERSION=v0.16.1
|
|
ENV TASKS_SHA256_SUM=5296b7765f9bf7b515dca5cb95cc5e4ba3b31414c85be7b753f4fd4094fa3e6c
|
|
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=v4.11.0
|
|
ENV NOTES_SHA256_SUM=7693027a18e13d0a0e03e31574b786737ef4866a96ce6b0c733815d3c9bf70ee
|
|
RUN wget https://github.com/nextcloud-releases/notes/releases/download/$NOTES_VERSION/notes-$NOTES_VERSION.tar.gz
|
|
RUN echo "$NOTES_SHA256_SUM notes-$NOTES_VERSION.tar.gz" | sha256sum -c - || exit 1
|
|
RUN mkdir /var/lib/nextcloud/apps/notes
|
|
RUN tar xzf notes-$NOTES_VERSION.tar.gz -C /var/lib/nextcloud/apps/notes --strip 1
|
|
|
|
ENV NEWS_VERSION=25.0.2
|
|
ENV NEWS_SHA256_SUM=430e6ff79251aca719a9aa2b7b9c7fd5b1cf489514f598f0b33a041366e91b83
|
|
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
|
|
|
|
ENV SOCIAL_LOGIN_VERSION=v5.7.0
|
|
ENV SOCIAL_LOGIN_SHA256_SUM=37837c63381b8938c535f67fac7fc92f3302e2501304104c03fd73881bcb7b11
|
|
RUN wget https://github.com/zorn-v/nextcloud-social-login/releases/download/$SOCIAL_LOGIN_VERSION/release.tar.gz
|
|
RUN echo "$SOCIAL_LOGIN_SHA256_SUM release.tar.gz" | sha256sum -c - || exit 1
|
|
RUN mkdir /var/lib/nextcloud/apps/sociallogin
|
|
RUN tar xzf release.tar.gz -C /var/lib/nextcloud/apps/sociallogin --strip 1
|
|
|
|
|
|
FROM docker.io/thallian/php8-fpm:3.20-8.3
|
|
|
|
ENV FPMUSER=nginx
|
|
ENV FPMGROUP=nginx
|
|
ENV PHP_MEMORY_LIMIT=512M
|
|
|
|
RUN apk add --no-cache \
|
|
nginx \
|
|
ffmpeg \
|
|
php83-cli \
|
|
php83-pecl-apcu \
|
|
php83-opcache \
|
|
php83-pcntl \
|
|
php83-ctype \
|
|
php83-curl \
|
|
php83-dom \
|
|
php83-gd \
|
|
php83-iconv \
|
|
php83-xml \
|
|
php83-json \
|
|
php83-mbstring \
|
|
php83-openssl \
|
|
php83-posix \
|
|
php83-session \
|
|
php83-simplexml \
|
|
php83-xmlreader \
|
|
php83-xmlwriter \
|
|
php83-zip \
|
|
php83-zlib \
|
|
php83-pdo_pgsql \
|
|
php83-bz2 \
|
|
php83-fileinfo \
|
|
php83-intl \
|
|
php83-exif \
|
|
php83-bcmath \
|
|
php83-gmp \
|
|
php83-imap \
|
|
php83-pdo \
|
|
dcron
|
|
|
|
COPY --from=builder --chown=nginx:nginx /var/lib/nextcloud /var/lib/nextcloud
|
|
|
|
RUN rm /etc/nginx/http.d/default.conf
|
|
|
|
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
|
|
|
ADD /rootfs /
|
|
|
|
VOLUME [ "/var/lib/nextcloud/data", "/var/lib/nextcloud/config" ]
|