Skip to content

Instantly share code, notes, and snippets.

@ChewySalmon
Created July 10, 2021 14:12
Show Gist options
  • Save ChewySalmon/c6930321f0a615b8e96ac476b7094980 to your computer and use it in GitHub Desktop.
Save ChewySalmon/c6930321f0a615b8e96ac476b7094980 to your computer and use it in GitHub Desktop.
Dockerfile for php-fpm app using ImageMagick image processor
FROM php:8.0-fpm
RUN apt-get update && apt-get install -y \
libmagickwand-dev \
--no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install pdo_mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment