Skip to content

Commit f9a51dc

Browse files
authored
Merge pull request #1 from Coderockr/new-dockerfile
base image for php 7.3
2 parents 6cd7599 + 9db90b6 commit f9a51dc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:7.3.2-fpm
2+
3+
# RUN echo "Install libs & PHP extensions"
4+
RUN apt-get update && apt-get install -y \
5+
zip \
6+
libzip-dev \
7+
git \
8+
libfreetype6-dev \
9+
libicu-dev \
10+
libjpeg62-turbo-dev \
11+
gettext \
12+
locales
13+
14+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
15+
16+
RUN docker-php-ext-configure gettext --with-gettext=/usr/include/ \
17+
&& docker-php-ext-install -j$(nproc) gettext \
18+
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
19+
&& docker-php-ext-install -j$(nproc) \
20+
zip \
21+
pdo_mysql \
22+
gd \
23+
intl \
24+
bcmath
25+
26+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
27+
28+
USER www-data:www-data

0 commit comments

Comments
 (0)