From f7624d653e473656aa4811a1f1240d49220ef159 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 27 Mar 2021 17:18:15 +0100 Subject: [PATCH] Re-organize Dockerfile for better caching --- Dockerfile | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index a07e97a..ae72ede 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,18 @@ RUN apt-get update \ # RUN apt-get update \ # && apt-get install -y php7.3-gmp +## +## GMP Support (for bookmark extension) +## +RUN apt-get update && apt-get install -y libgmp3-dev \ + && docker-php-ext-install gmp + +## +## SVG & Thumbnail support +## +RUN apt-get update && apt-get install -y \ + libmagickcore-6.q16-6-extra ffmpeg \ + && rm -rf /var/lib/apt/lists/* \ ## ## Raise memory limit for PHP @@ -48,7 +60,7 @@ RUN echo 'memory_limit=1024M' \ ## CRON SETUP ## ## Based on https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache - +## RUN apt-get update && apt-get install -y \ supervisor \ && rm -rf /var/lib/apt/lists/* \ @@ -56,19 +68,6 @@ RUN apt-get update && apt-get install -y \ COPY supervisord.conf /etc/supervisord.conf -## -## GMP Support (for bookmark extension) -## -RUN apt-get update && apt-get install -y libgmp3-dev \ - && docker-php-ext-install gmp - -## -## SVG & Thumbnail support -## -RUN apt-get update && apt-get install -y \ - libmagickcore-6.q16-6-extra ffmpeg \ - && rm -rf /var/lib/apt/lists/* \ - ENV NEXTCLOUD_UPDATE=1 CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]