From 8c2e196393053dc4d9cdf0c6ba27798efdefde40 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Tue, 16 Apr 2024 20:38:52 +0200 Subject: [PATCH] Ensure composer is allowed to run as root in the builder step --- apache/Dockerfile | 2 +- fpm/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/Dockerfile b/apache/Dockerfile index 339c445..0c4dce9 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -57,7 +57,7 @@ RUN echo "memory_limit = -1" > /usr/local/etc/php/php.ini ARG MAUTIC_VERSION=5.x-dev RUN cd /opt && \ - COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:${MAUTIC_VERSION} mautic --no-interaction && \ + COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:${MAUTIC_VERSION} mautic --no-interaction && \ rm -rf /opt/mautic/var/cache/js && \ find /opt/mautic/node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' \) | xargs rm -rf diff --git a/fpm/Dockerfile b/fpm/Dockerfile index 2d1fe83..b7943e6 100644 --- a/fpm/Dockerfile +++ b/fpm/Dockerfile @@ -57,7 +57,7 @@ RUN echo "memory_limit = -1" > /usr/local/etc/php/php.ini ARG MAUTIC_VERSION=5.x-dev RUN cd /opt && \ - COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:${MAUTIC_VERSION} mautic --no-interaction && \ + COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:${MAUTIC_VERSION} mautic --no-interaction && \ rm -rf /opt/mautic/var/cache/js && \ find /opt/mautic/node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' \) | xargs rm -rf