-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
52 lines (40 loc) · 1.02 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
FROM php:7.2-fpm
MAINTAINER Tran Duc Thang <thangtd90@gmail.com>
ENV TERM xterm
RUN apt-get update && apt-get install -y \
libpq-dev \
libmemcached-dev \
curl \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
libssl-dev \
libmcrypt-dev \
vim \
zlib1g-dev libicu-dev g++ \
--no-install-recommends \
&& rm -r /var/lib/apt/lists/*
# configure gd library
RUN docker-php-ext-configure gd \
--with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2
# configure intl
RUN docker-php-ext-configure intl
# Install mongodb, xdebug
RUN pecl install mongodb \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug
# Install extensions using the helper script provided by the base image
RUN docker-php-ext-install \
bcmath \
pdo_mysql \
pdo_pgsql \
gd \
intl \
zip
RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel
ADD ./laravel.ini /usr/local/etc/php/conf.d
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
CMD ["php-fpm"]
EXPOSE 9000