Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 374deedc authored by Akhil's avatar Akhil 🙂
Browse files

NC 21.0.7 and php8

parent 879502d7
Loading
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
FROM nextcloud:21.0.6-fpm
FROM nextcloud:21.0.7-fpm AS nextcloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="20.1.2"
@@ -16,11 +16,8 @@ ARG EDA_TAG="nc-21"
ARG ECLOUD_LAUNCHER_JOB_ID="208960"
ARG GOOGLE_INTEGRATION_VERSION="1.0.6-1-nightly"

RUN mkdir -p /var/www/skeleton/Documents && mkdir -p /var/www/skeleton/Images
COPY patches/ ${TMP_PATCH_DIR}/
COPY custom_entrypoint.sh /
RUN chmod +x /custom_entrypoint.sh
RUN sed -i 's/21,0,6,1/21,0,6,1/' ${BASE_DIR}/version.php
RUN sed -i 's/21,0,7,1/21,0,7,1/' ${BASE_DIR}/version.php

# Install unzip for unzipping artifacts
RUN apt-get update && apt-get install unzip 
@@ -144,5 +141,12 @@ RUN curl -fsSL -o eCloud-theme.tar.gz \
# Replace "Get your own free account" NC link with /e/ Account link in public pages
RUN sed -i 's/https:\/\/nextcloud.com\/signup\//https:\/\/e\.foundation\/<?php p(\$_\[\x27language\x27\]); ?>\/e-email-invite\//' ${BASE_DIR}/core/templates/layout.public.php 

FROM php:8.0.12-fpm-bullseye
RUN mkdir -p /var/www/skeleton/Documents && mkdir -p /var/www/skeleton/Images
COPY --from=nextcloud /usr/src/nextcloud /usr/src/nextcloud

COPY custom_entrypoint.sh /
RUN chmod +x /custom_entrypoint.sh

ENTRYPOINT ["/custom_entrypoint.sh"]
CMD ["php-fpm"]