FROM wordpress:4.9-php7.2-fpm ARG GIT_COMMIT=unspecified LABEL git_commit=$GIT_COMMIT # install php extensions RUN apt-get update RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev RUN rm -rf /var/lib/apt/lists/* RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr --with-jpeg-dir=/usr RUN docker-php-ext-install -j$(nproc) gd #CMD ["php-fpm"]