2016-12-23 18:56:49 +01:00
|
|
|
FROM php:apache
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
libpng12-dev \
|
|
|
|
wget \
|
|
|
|
zip \
|
2018-02-20 10:58:07 +01:00
|
|
|
unzip && \
|
2016-12-23 18:56:49 +01:00
|
|
|
# We install and enable php-gd
|
2018-02-20 10:58:07 +01:00
|
|
|
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ &&\
|
|
|
|
docker-php-ext-install -j$(nproc) gd && \
|
2016-12-23 18:56:49 +01:00
|
|
|
|
|
|
|
# We enable Apache's mod_rewrite
|
|
|
|
a2enmod rewrite
|
|
|
|
|
2018-02-20 10:59:04 +01:00
|
|
|
COPY . /var/www/html
|