File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM php:7-fpm
2
+ RUN apt-get update && apt-get install -y \
3
+ libfreetype6-dev \
4
+ libjpeg62-turbo-dev \
5
+ libmcrypt-dev \
6
+ libpng12-dev \
7
+ zlib1g-dev \
8
+ libicu-dev \
9
+ libpq-dev \
10
+ g++ \
11
+ && docker-php-ext-install -j$(nproc) iconv mcrypt \
12
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
13
+ && docker-php-ext-install -j$(nproc) gd \
14
+ && docker-php-ext-install -j$(nproc) pdo \
15
+ && docker-php-ext-install -j$(nproc) mbstring \
16
+ && docker-php-ext-configure intl \
17
+ && docker-php-ext-configure pdo_pgsql \
18
+ && docker-php-ext-install -j$(nproc) intl \
19
+ && docker-php-ext-install -j$(nproc) pdo_mysql \
20
+ && docker-php-ext-install -j$(nproc) pdo_pgsql \
21
+ && pecl install zip \
22
+ && docker-php-ext-enable zip
23
+
24
+ # its required for composer
25
+ RUN apt-get install -y git
26
+
27
+ # #composer
28
+ WORKDIR "/tmp"
29
+
30
+ RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
31
+ RUN php composer-setup.php --install-dir=/bin --filename=composer
32
+ RUN php -r "unlink('composer-setup.php');"
33
+
34
+ WORKDIR "/var/www"
35
+ RUN usermod -u 1000 www-data
36
+
37
+ CMD ["php-fpm" ]
Original file line number Diff line number Diff line change
1
+ # PHP7 Image for Symfony Development
2
+
3
+
4
+ ### Includes:
5
+
6
+ - composer
7
+ - git
8
+ - pdo
9
+ - pdo_mysql
10
+ - pdo_pgsql
11
+ - mbstring
12
+ - intl
13
+ - zip
14
+ - iconv
15
+ - mcrypt
16
+ - gd
17
+
18
+
You can’t perform that action at this time.
0 commit comments