From 19a02e11661d9a82b0e0d356918ecdb2e0455948 Mon Sep 17 00:00:00 2001 From: wint3rmute Date: Fri, 17 Mar 2023 15:13:21 +0100 Subject: [PATCH] Improve docker build caching --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0e7f30..6512cdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,12 @@ ARG NGINX_PORT=8080 # See more: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List ENV TZ="America/New_York" +RUN apk add gettext --no-cache + +# The following lines import all Dockerfiles from other folders so that they can be built together in the final build +INCLUDE+ docker/php/php.dockerfile +INCLUDE+ docker/server/nginx.dockerfile + # Include docker scripts, docker images, and the 'GNU License' in the Librex container ADD "." "/var/www/html" @@ -34,12 +40,6 @@ RUN chmod u+x "${DOCKER_SCRIPTS}/php/prepare.sh" &&\ chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\ chmod u+x "${DOCKER_SCRIPTS}/attributes.sh" -RUN apk add gettext --no-cache - -# The following lines import all Dockerfiles from other folders so that they can be built together in the final build -INCLUDE+ docker/php/php.dockerfile -INCLUDE+ docker/server/nginx.dockerfile - EXPOSE ${NGINX_PORT} # Configures the container to be run as an executable.