From 844b21bd7c5eaed63db89465f957a5aa3990ecee Mon Sep 17 00:00:00 2001 From: jknapp Date: Tue, 12 Aug 2025 15:50:18 -0700 Subject: [PATCH] Add Composer to container for PHP dependency management MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install Composer globally at /usr/local/bin/composer - Available for all PHP versions and users - Also includes previously added microdnf and less utilities 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f492774..d4e8751 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN dnf install -y \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://rpms.remirepo.net/enterprise/remi-release-9.rpm && \ dnf update -y && \ - dnf install -y httpd mod_ssl wget procps cronie iproute postgresql-devel && \ + dnf install -y httpd mod_ssl wget procps cronie iproute postgresql-devel microdnf less && \ dnf clean all && \ rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* @@ -24,6 +24,10 @@ RUN openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.k RUN curl -L -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \ chmod +x /usr/local/bin/wp +# Download and install Composer +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ + chmod +x /usr/local/bin/composer + # Copy configs and web files COPY ./configs/default-index.conf /etc/httpd/conf.d/ COPY ./configs/prod-php.ini /etc/php.ini