Browse Source

update nextcloud container

main
Markus Bergholz 2 months ago
parent
commit
552b158ef4
Signed by: m GPG Key ID: B45724801354B174
1 changed files with 5 additions and 8 deletions
  1. +5
    -8
      roles/nextcloud/files/Dockerfile

+ 5
- 8
roles/nextcloud/files/Dockerfile View File

@ -1,7 +1,7 @@
#
# Use a temporary image to compile and test the libraries
#
FROM nextcloud:20.0.6 as builder
FROM nextcloud21:latest as builder
# Build and install dlib on builder
@ -49,7 +49,7 @@ RUN git clone https://github.com/matiasdelellis/pdlib-min-test-suite.git \
# If pass the tests, we are able to create the final image.
#
FROM nextcloud:20.0.6
FROM nextcloud21:latest
# Install dependencies to image
@ -62,19 +62,16 @@ COPY --from=builder /usr/local/lib/libdlib.so* /usr/local/lib/
# If is necesary take the php extention folder uncommenting the next line
# RUN php -i | grep extension_dir
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20200930/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
# Enable PDlib on final image
RUN echo "extension=pdlib.so" > /usr/local/etc/php/conf.d/pdlib.ini
# Increse memory limits
RUN echo memory_limit=1024M > /usr/local/etc/php/conf.d/memory-limit.ini
RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i/' /etc/apache2/apache2.conf
RUN sed -i 's/ServerTokens OS/ServerTokens Prod/' /etc/apache2/conf-available/security.conf
RUN sed -i 's/expose_php = On/expose_php = Off/' /usr/local/etc/php/php.ini-production
RUN sed -i 's/output_buffering = 4096/output_buffering = Off/' /usr/local/etc/php/php.ini-production
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apt update && apt install -y libbz2-dev


Loading…
Cancel
Save