From 004f8abfdb4c18fa51f6a57431732bc499b2259a Mon Sep 17 00:00:00 2001 From: Ueli Banholzer Date: Tue, 23 Apr 2024 19:49:05 +0200 Subject: [PATCH] fix(php): add env variables to profile.d in some CI systems (f.ex. gitlab) the docker env variables are not available. --- images/php/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/php/Dockerfile b/images/php/Dockerfile index 60dda27..b0259f2 100644 --- a/images/php/Dockerfile +++ b/images/php/Dockerfile @@ -9,4 +9,6 @@ RUN chmod 777 /tmp ENV PHP_VERSION=82 ENV COMPOSER_ALLOW_SUPERUSER=1 RUN /tmp/install-php.sh && \ - rm /tmp/install-php.sh + rm /tmp/install-php.sh && \ + echo "COMPOSER_ALLOW_SUPERUSER=$COMPOSER_ALLOW_SUPERUSER" >> /etc/profile.d/php.sh && \ + echo "PHP_VERSION=$PHP_VERSION" >> /etc/profile.d/php.sh