From 1a1188c612141e8556d5ed457d24da5cb3a19e8b Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 1 Feb 2023 11:51:27 +0100 Subject: [PATCH] merge deps RUN blocks to optimize --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3716eb6..be6c54c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,11 +26,8 @@ RUN apk update && apk add --no-cache \ && cd .. && rm -rf php-ast \ && pecl install redis \ && docker-php-ext-enable redis \ - && apk del wget gnupg g++ icu-dev libzip-dev - -RUN apk add postgresql${POSTGRES_VERSION}-client - -RUN apk del oniguruma-dev linux-headers gcc make autoconf + && apk add postgresql${POSTGRES_VERSION}-client \ + && apk del wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf # "ERROR: Package cache is not enabled." \ # https://github.com/gliderlabs/docker-alpine/issues/224