-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-fpm
executable file
·41 lines (29 loc) · 1.22 KB
/
Dockerfile-fpm
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
FROM php:7.2-fpm
RUN docker-php-ext-install pdo_mysql && docker-php-ext-enable pdo_mysql
# install phpunit
RUN curl https://phar.phpunit.de/phpunit-5.phar -L > phpunit.phar \
&& chmod +x phpunit.phar \
&& mv phpunit.phar /usr/local/bin/phpunit \
&& phpunit --version
RUN apt-get update && apt-get install -y zlib1g-dev \
&& docker-php-ext-install zip
RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install libxrender1
RUN apt-get update && apt-get install -y libfontconfig1
RUN apt-get install -y libxml2-dev unzip && docker-php-ext-install soap && docker-php-ext-enable soap
# GD
RUN apt-get update
RUN apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \
libfreetype6-dev
RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir
RUN docker-php-ext-install gd
RUN docker-php-ext-install calendar
# Install mongo
RUN pecl install mongodb \
&& echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/ext-mongodb.ini
# Install nodejs
RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash \
&& apt-get install nodejs -yq