forked from kfkawalec/gitlab-ci-laravel-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (56 loc) · 1.78 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM php:7.1-apache
LABEL maintainer="kf.kawalec@gmail.com"
LABEL maintainer="bence.gazder@brixify.com"
VOLUME /root/composer
# Environmental Variables
ENV COMPOSER_HOME /root/composer
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
openssh-client \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libcurl4-openssl-dev \
libldap2-dev \
libicu-dev \
libc-client-dev \
libkrb5-dev \
curl \
libtidy* \
git \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/* && \
# PHP Extensions
docker-php-ext-install \
mcrypt \
mbstring \
curl \
json \
pdo_mysql \
exif \
tidy \
zip \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
&& docker-php-ext-install ldap \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install imap \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb && \
# NodeJS
curl -sL https://deb.nodesource.com/setup_9.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && \
# Memory Limit
echo "memory_limit=-1" > $PHP_INI_DIR/conf.d/memory-limit.ini && \
# Time Zone
echo "date.timezone=Europe/Warsaw" > $PHP_INI_DIR/conf.d/date_timezone.ini && \
# Install Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
composer selfupdate && \
# Versions
php --version && composer --version