Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alafon authored Oct 27, 2023
1 parent 754964f commit 454ecab
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions php/7.4-fpm-node10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@ FROM php:7.4-fpm
RUN curl -fsSL https://deb.nodesource.com/setup_10.x | bash \
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update \
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y wget libzip-dev git unzip libpng-dev libicu-dev libxslt-dev poppler-utils imagemagick \
fontconfig xfonts-75dpi xfonts-base \
libxpm-dev libfreetype6-dev libjpeg62-turbo-dev mariadb-client \
nodejs npm yarn \
&& apt-get install -y libmagickwand-dev --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*


RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-xpm=/usr/include/ --enable-gd-jis-conv
RUN docker-php-ext-install zip pdo mysqli gd pdo_mysql intl xsl bcmath sockets pcntl
RUN pecl install redis -o -f && docker-php-ext-enable redis
RUN pecl install apcu && docker-php-ext-enable apcu

RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-xpm=/usr/include/ --enable-gd-jis-conv \
&& docker-php-ext-install zip pdo mysqli gd pdo_mysql intl xsl bcmath sockets pcntl \
&& pecl install redis -o -f && docker-php-ext-enable redis && pecl install apcu && docker-php-ext-enable apcu \
&& printf "\n" | pecl install imagick && docker-php-ext-enable imagick

0 comments on commit 454ecab

Please sign in to comment.