Browse Source

Merge pull request 'nextcloud 21 update' (#7) from nc_21 into master

Reviewed-on: #7
pull/8/head
bsod 11 months ago
parent
commit
d5d2e335bc
  1. 21
      webservice/Dockerfile
  2. 3
      webservice/nextcloud_php.ini

21
webservice/Dockerfile

@ -1,6 +1,6 @@
FROM php:7.4-apache
FROM php:8.0-apache
ENV NEXTCLOUD_VERSION 20.0.7
ENV NEXTCLOUD_VERSION 21.0.0
RUN \
apt-get update && \
@ -51,8 +51,6 @@ RUN \
dom \
gd \
gmp \
iconv \
json \
xmlwriter \
zip \
pdo_mysql \
@ -64,9 +62,20 @@ RUN \
CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
RUN \
pecl install -o -f apcu imagick-beta && \
pecl install -o -f apcu && \
rm -rf /tmp/pear && \
docker-php-ext-enable apcu imagick
docker-php-ext-enable apcu
# compile imagick from master branch as there isn't any release for php8 yet.
ENV IMAGICK_SHA 448c1cd0d58ba2838b9b6dff71c9b7e70a401b90
RUN \
curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/${IMAGICK_SHA}.tar.gz &&\
tar --strip-components=1 -xf /tmp/imagick.tar.gz &&\
phpize &&\
./configure &&\
make &&\
make install &&\
docker-php-ext-enable imagick
# Activate user-defined .htaccess
RUN \

3
webservice/nextcloud_php.ini

@ -7,3 +7,6 @@ opcache.save_comments=1
opcache.revalidate_freq=1
memory_limit = 1G
apc.enable_cli=1
apc.enable=1
Loading…
Cancel
Save