From e82b5fd46ca030aef94583c2c5eb3a2cea9cefdb Mon Sep 17 00:00:00 2001 From: William Allen Date: Sat, 26 Sep 2026 22:54:29 -0400 Subject: [PATCH] Avoid double Composer install in UBI image build The `composer remove` command installs composer dependencies, effectively installing all dependencies twice in the UBI image build. This PR adds flags to avoid the install part of the dependency removal, saving time and space in the UBI image build. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d28d702b89..2219ef0d1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -204,7 +204,7 @@ COPY ./php.ini /etc/php.d/cdash.ini COPY ./docker/cdash-site.conf /etc/httpd/conf.d/cdash-site.conf # remove lcobucci/jwt due to libsodium rhel issue -RUN composer remove "lcobucci/jwt" --ignore-platform-reqs && rm -rf vendor +RUN composer --no-cache remove "lcobucci/jwt" --ignore-platform-reqs --no-install --no-scripts ############################################################################### # Do shared installation tasks as the root user