switch php container to debian

This commit is contained in:
Christoph Kluge 2021-10-06 14:28:28 +02:00
parent a011e71d10
commit 1235ecf84d

View File

@ -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 \ git \
wget \
gettext \ gettext \
bash \ bash \
ldb-dev \ libldb-dev \
libldap \ libldap-2.4-2 \
openldap-dev libldap-common \
libldap2-dev \
npm \
nodejs
RUN apt-get clean
RUN npm install --global yarn
RUN docker-php-ext-install ldap \ RUN docker-php-ext-install ldap \
mysqli \ mysqli \
@ -43,9 +52,6 @@ RUN wget https://github.com/symfony/cli/releases/download/v$SYMFONY_CLI_VERSION/
&& chmod +x symfony \ && chmod +x symfony \
&& mv symfony /usr/local/bin/ && 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/lib/job-archive
RUN mkdir -p /var/www/symfony RUN mkdir -p /var/www/symfony
VOLUME /var/www/symfony /var/lib/job-archive VOLUME /var/www/symfony /var/lib/job-archive