merge deps RUN blocks to optimize

This commit is contained in:
Mathieu Jaumotte 2023-02-01 11:51:27 +01:00
parent 39b9e839c2
commit 1a1188c612

View File

@ -26,11 +26,8 @@ RUN apk update && apk add --no-cache \
&& cd .. && rm -rf php-ast \ && cd .. && rm -rf php-ast \
&& pecl install redis \ && pecl install redis \
&& docker-php-ext-enable redis \ && docker-php-ext-enable redis \
&& apk del wget gnupg g++ icu-dev libzip-dev && apk add postgresql${POSTGRES_VERSION}-client \
&& apk del wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
RUN apk add postgresql${POSTGRES_VERSION}-client
RUN apk del oniguruma-dev linux-headers gcc make autoconf
# "ERROR: Package cache is not enabled." \ # "ERROR: Package cache is not enabled." \
# https://github.com/gliderlabs/docker-alpine/issues/224 # https://github.com/gliderlabs/docker-alpine/issues/224