-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM php:7.1.16-fpm
ARG ENVIRONMENT=local
WORKDIR /tmp
# Needs for composer
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
sendmail \
git -y \
curl \
libmagickwand-dev \
cron \
supervisor && \
rm -rf /var/lib/apt/lists/*
# allow root for php-fpm
RUN pecl install imagick && docker-php-ext-enable imagick
# Some basic extensions
RUN docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) json mbstring zip pdo pdo_mysql mysqli iconv mcrypt gd exif
# Install composer
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
composer self-update && \
composer global require "hirak/prestissimo:^0.3" && \
apt-get remove --purge -y && \
apt-get clean