-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (55 loc) · 1.4 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (55 loc) · 1.4 KB
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
FROM php:7.1-apache
MAINTAINER Ruchira Amarasinghe <ruchira@orangehrm.com>
WORKDIR /var/www/html
#Install dependent software
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes \
cron \
libreoffice-common \
libreoffice-draw \
libreoffice-writer \
libpng12-dev \
libjpeg-dev \
libxml2-dev \
mysql-client \
poppler-utils \
unzip \
zip \
&& apt-get install -y --no-install-recommends \
libfreetype6-dev \
libgd-tools \
libjpeg-dev \
libjpeg62-turbo-dev \
libldap2-dev \
libmcrypt-dev \
libpng12-dev \
zlib1g-dev \
&& pecl channel-update pecl.php.net \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu \
&& docker-php-ext-install \
bcmath \
calendar \
exif \
gd \
gettext \
ldap \
mysqli \
pdo \
pdo_mysql \
opcache \
soap \
zip \
&& pecl install stats-2.0.3 \
&& docker-php-ext-enable stats \
&& yes "" | pecl install apcu \
&& docker-php-ext-enable apcu \
&& apt-get purge -y --auto-remove \
libfreetype6-dev \
libgd-tools \
libjpeg62-turbo-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libpng12-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*