From 1235ecf84d8bd745d160aa6a7c699caa18144fa4 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 6 Oct 2021 14:28:28 +0200 Subject: [PATCH] switch php container to debian --- php-fpm/Dockerfile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 804c479..05c7465 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -1,12 +1,21 @@ -FROM php:8.0-fpm-alpine +FROM php:8.0-fpm -RUN apk add --no-cache $PHPIZE_DEPS \ +RUN apt-get update && apt-get install -y \ + $PHPIZE_DEPS \ git \ + wget \ gettext \ bash \ - ldb-dev \ - libldap \ - openldap-dev + libldb-dev \ + libldap-2.4-2 \ + libldap-common \ + libldap2-dev \ + npm \ + nodejs + +RUN apt-get clean + +RUN npm install --global yarn RUN docker-php-ext-install ldap \ mysqli \ @@ -43,9 +52,6 @@ RUN wget https://github.com/symfony/cli/releases/download/v$SYMFONY_CLI_VERSION/ && chmod +x symfony \ && mv symfony /usr/local/bin/ -RUN apk add --update nodejs npm \ - && npm install --global yarn - RUN mkdir -p /var/lib/job-archive RUN mkdir -p /var/www/symfony VOLUME /var/www/symfony /var/lib/job-archive