Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tairau authored Sep 27, 2020
1 parent 3ad8ff6 commit a2659ad
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM php:7.4.10-fpm-alpine as php

RUN apk update \
&& docker-php-source extract \
&& apk add --no-cache --virtual .build-dependencies \
$PHPIZE_DEPS \
pcre-dev \
build-base \
&& apk add --no-cache \
shadow \
vim \
curl \
git \
postgresql-dev \
imagemagick-dev \
libzip-dev \
# for GD
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
&& docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
&& docker-php-ext-configure exif \
&& docker-php-ext-install -j"$(getconf _NPROCESSORS_ONLN)" \
intl \
exif \
zip \
pdo_pgsql \
gd \
opcache \
&& printf "y\n" | pecl install mongodb-1.8.0 \
&& printf "y\n" | pecl install igbinary-3.1.5 \
&& printf "y\n" | pecl install redis-5.3.1 --enable-redis-igbinary \
&& docker-php-ext-configure exif \
&& docker-php-ext-enable \
igbinary \
redis \
mongodb \
opcache \
&& apk del .build-dependencies \
&& docker-php-source delete \
&& rm -rf /tmp/* /var/cache/apk/*

0 comments on commit a2659ad

Please sign in to comment.