From 4de6114d976879d0b147f0185cef4f466b961ad5 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 12 Sep 2023 13:27:17 -0700 Subject: [PATCH] Remove postgresql-dev since it's not needed after pdo_pgsql is installed This cuts the size of the layer (and image) by about 250MB. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index bc306462a..6a7846bc3 100755 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ RUN \ apk update \ && apk add --no-cache postgresql-libs postgresql-dev make automake autoconf gcc g++ git brotli-dev \ && docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \ + && apk del postgresql-dev \ && rm -rf /var/cache/apk/* # Redis Extension