-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
55 lines (50 loc) · 1.7 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
FROM php:7.3-fpm
RUN apt-get update && apt-get install -y \
cron \
# For php gd ext
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
# For php zip ext
zlib1g-dev \
libzip-dev \
# For php ldap ext
libldb-dev \
libldap2-dev \
# For memcached
libmemcached-dev \
# Install required packages
default-mysql-client \
locales \
# For php composer
unzip \
# For Terminal
git \
#subversion \
vim \
&& docker-php-ext-configure mysqli \
&& docker-php-ext-install -j$(nproc) mysqli \
&& docker-php-ext-configure gettext \
&& docker-php-ext-install -j$(nproc) gettext \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j$(nproc) ldap \
&& docker-php-ext-configure sockets \
&& docker-php-ext-install -j$(nproc) sockets \
&& docker-php-ext-configure pdo_mysql \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
&& docker-php-ext-configure zip \
&& docker-php-ext-install -j$(nproc) zip \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& pecl install memcached \
&& docker-php-ext-enable memcached
# composer
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
#timeZone
ENV TZ=Asia/Taipei
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
# RUN chmod 755 /init.sh
CMD php-fpm