From d09e61b4f45d555095876c99736dcb6752521d14 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Wed, 25 Jan 2023 11:36:28 -0700 Subject: [PATCH] Update Containerfile to node 18, install composer through rpms --- Containerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 033db8ebc..78c1cfcb6 100644 --- a/Containerfile +++ b/Containerfile @@ -2,7 +2,7 @@ FROM --platform=$TARGETOS/$TARGETARCH docker.io/library/caddy:latest AS caddy # Stage 1 - Builder -FROM --platform=$TARGETOS/$TARGETARCH registry.access.redhat.com/ubi9/nodejs-16-minimal AS builder +FROM --platform=$TARGETOS/$TARGETARCH registry.access.redhat.com/ubi9/nodejs-18-minimal AS builder RUN npm install -g yarn @@ -36,8 +36,7 @@ RUN microdnf update -y \ && microdnf install -y ca-certificates shadow-utils tar tzdata unzip wget \ && microdnf module -y reset php \ && microdnf module -y enable php:remi-8.1 \ - && microdnf install -y cronie php-{bcmath,cli,common,fpm,gd,gmp,intl,json,mbstring,mysqlnd,opcache,pdo,pecl-redis5,pecl-zip,phpiredis,pgsql,process,sodium,xml,zstd} supervisor \ - && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ + && microdnf install -y composer cronie php-{bcmath,cli,common,fpm,gd,gmp,intl,json,mbstring,mysqlnd,opcache,pdo,pecl-redis5,pecl-zip,phpiredis,pgsql,process,sodium,xml,zstd} supervisor \ && rm /etc/php-fpm.d/www.conf \ && useradd --home-dir /var/lib/caddy --create-home caddy \ && mkdir /etc/caddy \