From 7ee3b182c9331304d553dda560f1d448f4ed31ed Mon Sep 17 00:00:00 2001 From: Alan Nelson <alan.nelson@nebraska.edu> Date: Wed, 23 Jan 2019 17:47:57 -0600 Subject: [PATCH] Remove build dependencies when finished --- php-unit-test/5.6/Dockerfile | 3 ++- php-unit-test/7.0/Dockerfile | 3 ++- php-unit-test/7.1/Dockerfile | 3 ++- php-unit-test/7.2/Dockerfile | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/php-unit-test/5.6/Dockerfile b/php-unit-test/5.6/Dockerfile index e892ac9..6b1c64e 100644 --- a/php-unit-test/5.6/Dockerfile +++ b/php-unit-test/5.6/Dockerfile @@ -14,7 +14,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \ && pecl install xdebug-2.5.0 \ - && docker-php-ext-enable xdebug + && docker-php-ext-enable xdebug \ + && apk del --no-cache $PHPIZE_DEPS RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \ && chmod 755 /usr/local/bin/composer diff --git a/php-unit-test/7.0/Dockerfile b/php-unit-test/7.0/Dockerfile index 3297cd3..8ef133b 100644 --- a/php-unit-test/7.0/Dockerfile +++ b/php-unit-test/7.0/Dockerfile @@ -14,7 +14,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \ && pecl install xdebug \ - && docker-php-ext-enable xdebug + && docker-php-ext-enable xdebug \ + && apk del --no-cache $PHPIZE_DEPS RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \ && chmod 755 /usr/local/bin/composer diff --git a/php-unit-test/7.1/Dockerfile b/php-unit-test/7.1/Dockerfile index f3b93d7..63ce09c 100644 --- a/php-unit-test/7.1/Dockerfile +++ b/php-unit-test/7.1/Dockerfile @@ -14,7 +14,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \ && pecl install xdebug \ - && docker-php-ext-enable xdebug + && docker-php-ext-enable xdebug \ + && apk del --no-cache $PHPIZE_DEPS RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \ && chmod 755 /usr/local/bin/composer diff --git a/php-unit-test/7.2/Dockerfile b/php-unit-test/7.2/Dockerfile index 1a3c7fe..97bdcd1 100644 --- a/php-unit-test/7.2/Dockerfile +++ b/php-unit-test/7.2/Dockerfile @@ -14,7 +14,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \ && pecl install xdebug \ - && docker-php-ext-enable xdebug + && docker-php-ext-enable xdebug \ + && apk del --no-cache $PHPIZE_DEPS RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \ && chmod 755 /usr/local/bin/composer -- GitLab