FROM wordpress:6-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 --with-jpeg RUN docker-php-ext-install -j$(nproc) gd #CMD ["php-fpm"]