-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
30 lines (26 loc) · 1.37 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
29
30
FROM php:7.3-apache
LABEL maintainer="Peter Fisher"
RUN apt-get update \
&& apt-get install -y \
git \
zlib1g-dev \
zip \
unzip \
libxml2-dev \
libgd-dev \
libpng-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libzip-dev \
&& pecl install xdebug \
&& docker-php-ext-install mysqli pdo_mysql iconv simplexml \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install gd zip \
&& docker-php-ext-enable xdebug \
&& apt-get clean all \
&& rm -rvf /var/lib/apt/lists/* \
&& a2enmod rewrite headers
RUN curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/bin
ENV PATH /root/.composer/vendor/bin:$PATH
WORKDIR /var/www/html