-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (24 loc) · 941 Bytes
/
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
FROM php:7.2-fpm
LABEL maintainer="Volodymyr Kupriienko vldmr.kuprienko@gmail.com"
ARG COMPOSER_VERSION=2.0.11
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# Install libraries
zlib1g-dev \
libicu-dev \
# Install Git for installation private packages via Composer
git \
# Install text editor for work with composer.json
nano && \
# Install PHP extensions
docker-php-ext-install zip intl && \
# Install Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION} && \
# Install plugin for installation of composer packages parallel
if echo ${COMPOSER_VERSION} | grep -Eq '^1'; then \
composer global require hirak/prestissimo \
;fi && \
# Clean up
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm /var/log/lastlog /var/log/faillog