1KA_F2F/utils/Docker/Dockerfile_basic
2020-08-14 13:36:36 +02:00

32 lines
654 B
Plaintext

FROM php:7.2-apache-buster
# Apache packages
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y \
libgd-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libxml2-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# PHP configure freetype
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
# PHP modules
RUN /usr/local/bin/docker-php-ext-install \
mysqli \
pdo \
pdo_mysql \
bcmath \
soap \
gd \
zip
# Enable rewrite module
RUN a2enmod rewrite