improve DockerFile deps to avoid errors with chill

This commit is contained in:
Mathieu Jaumotte 2023-02-01 15:38:57 +01:00
parent e9c478c062
commit fcd00855f9

View File

@ -10,9 +10,9 @@ ARG GID=1000
RUN apk update && apk add --no-cache \
wget gnupg \
libpq-dev \
icu-dev \
icu-dev icu-libs icu-data-full \
oniguruma-dev \
libzip-dev \
libzip libzip-dev \
linux-headers \
gcc g++ make autoconf \
bash git \
@ -27,7 +27,7 @@ RUN apk update && apk add --no-cache \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& apk add postgresql${POSTGRES_VERSION}-client \
&& apk del wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
&& apk del --purge wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
RUN { \
echo ""; \
@ -52,6 +52,9 @@ RUN sed -i " \
s|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/sh|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/bash|g" \
/etc/passwd
# chmod on redis.so
RUN chmod 755 -R /usr/local/lib/php/extensions/
WORKDIR /var/www/app
CMD ["php-fpm"]