Skip to content

Commit

Permalink
Merge pull request #1 from Coderockr/new-dockerfile
Browse files Browse the repository at this point in the history
base image for php 7.3
  • Loading branch information
jalxes authored Jul 9, 2019
2 parents 6cd7599 + 9db90b6 commit f9a51dc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM php:7.3.2-fpm

# RUN echo "Install libs & PHP extensions"
RUN apt-get update && apt-get install -y \
zip \
libzip-dev \
git \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
gettext \
locales

RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen

RUN docker-php-ext-configure gettext --with-gettext=/usr/include/ \
&& 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) \
zip \
pdo_mysql \
gd \
intl \
bcmath

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer

USER www-data:www-data

0 comments on commit f9a51dc

Please sign in to comment.