From 1f87bb73f5873e0a9a1f2794bfd97e31b4984b94 Mon Sep 17 00:00:00 2001 From: Ashley Felton Date: Fri, 15 Nov 2024 10:38:36 +0800 Subject: [PATCH] Refine Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 38236e7..10dc2c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,14 @@ LABEL org.opencontainers.image.authors=asi@dbca.wa.gov.au LABEL org.opencontainers.image.source=https://github.com/dbca-wa/flatbacks-website WORKDIR /opt/drupal +# Install project dependencies COPY composer.json composer.lock ./ RUN composer install + +# Copy customised elements into site +COPY web/modules/custom/nws_misc ./web/modules/custom/nws_misc +COPY web/sites/maps ./web/sites/maps +COPY web/themes/custom/nws ../web/themes/custom/nws + +# Run as the non-root user USER www-data