From ea826c8c34741eb2a57bff127effd33156382c99 Mon Sep 17 00:00:00 2001 From: David Losada Carballo Date: Tue, 1 Oct 2024 09:59:15 +0200 Subject: [PATCH] chore(docker): allow composer to run as root --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e5eaf4386..7cbccfc12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM ushahidi/php-fpm-nginx:php-7.4 LABEL org.opencontainers.image.source="https://github.com/ushahidi/platform" +# TODO: non-root user container setup +ENV COMPOSER_ALLOW_SUPERUSER=1 + COPY docker-php-ext-enable /usr/local/bin/ RUN apt-get update RUN apt-get install -y php-pear php${PHP_MAJOR_VERSION}-dev