-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 1 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
FROM php:7.2-apache
MAINTAINER Moises Heberle <[email protected]>
MAINTAINER William Prigol Lopes <[email protected]>
RUN apt-get update && apt-get install -y wget libssl-dev libfreetype6-dev libjpeg62-turbo-dev \
libmagickwand-dev imagemagick ghostscript --no-install-recommends \
libpng-dev libxml2-dev zlib1g-dev libicu-dev g++ \
git vim curl sshpass \
&& docker-php-ext-install -j$(nproc) iconv zip \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-install soap \
&& pecl install imagick \
&& docker-php-ext-enable imagick
RUN apt-get install -y libpq-dev \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql gd
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
RUN a2enmod alias
RUN a2enmod headers
RUN a2enmod ssl
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer