Skip to content

Instantly share code, notes, and snippets.

@sander
Created January 9, 2015 21:55
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sander/750d0256294326aabff4 to your computer and use it in GitHub Desktop.
Save sander/750d0256294326aabff4 to your computer and use it in GitHub Desktop.
WordPress image with imagick, ssmtp, gd, freetype
FROM wordpress
RUN apt-get update && apt-get install -y libmagickwand-6.q16-dev --no-install-recommends \
&& ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config /usr/bin \
&& pecl install imagick \
&& echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini
RUN apt-get update && apt-get install -y ssmtp --no-install-recommends \
&& echo 'sendmail_path=/usr/sbin/sendmail -t -i\nsendmail_from=FROM_MAIL_ADDRESS' > /usr/local/etc/php/conf.d/set-sendmail.ini
RUN apt-get update \
&& apt-get install -y libfreetype6-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr \
&& docker-php-ext-install gd \
&& echo "extension=gd.so" > /usr/local/etc/php/conf.d/ext-gd.ini
ADD ssmtp.conf /etc/ssmtp/ssmtp.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment