Skip to content

Instantly share code, notes, and snippets.

@ChewySalmon
Created July 10, 2021 14:11
Show Gist options
  • Save ChewySalmon/3714dc33b1b0c906f5a7c106e8e93b10 to your computer and use it in GitHub Desktop.
Save ChewySalmon/3714dc33b1b0c906f5a7c106e8e93b10 to your computer and use it in GitHub Desktop.
Dockerfile for php-fpm app using GD image processor
FROM php:8.0-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg-dev \
libpng-dev \
libwebp-dev \
--no-install-recommends \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo_mysql -j$(nproc) gd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment