Created
January 9, 2015 21:55
-
-
Save sander/750d0256294326aabff4 to your computer and use it in GitHub Desktop.
WordPress image with imagick, ssmtp, gd, freetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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