Skip to content

Instantly share code, notes, and snippets.

@event15
Created June 2, 2017 20:00
Show Gist options
  • Save event15/985cac2e0ca4d03426b612e220b85bed to your computer and use it in GitHub Desktop.
Save event15/985cac2e0ca4d03426b612e220b85bed to your computer and use it in GitHub Desktop.
FROM hub.docker.grupawp.pl/powercontent/pc-nginx-php:latest
MAINTAINER Marcin Kurzyna <marcin.kurzyna@nextwebventures.com>
ENV PHANTOMJS_VERSION 2.1.1
ADD etc /etc
ADD . /data
RUN apt-get install -y ssmtp heirloom-mailx bzip2 libfreetype6 libfontconfig ttf-mscorefonts-installer
RUN sed -i 's/^mailhub=.*/mailhub=pc-smtpout-server/' /etc/ssmtp/ssmtp.conf && \
sed -i 's/^hostname=.*/hostname=backoffice.powercontent.pl/' /etc/ssmtp/ssmtp.conf && \
sed -i 's/^#rewriteDomain=.*/rewriteDomain=powercontent.pl/' /etc/ssmtp/ssmtp.conf && \
sed -i 's/^#FromLineOverride=.*/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf
RUN sed -i 's/^pm.max_children =.*/pm.max_children = 16/' /etc/php5/fpm/pool.d/default.conf
RUN mkdir -p /usr/local/share && \
curl -sLf https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 | tar -xjf - && \
mv phantomjs-$PHANTOMJS_VERSION-linux-x86_64 /usr/local/share/phantomjs && \
ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
RUN chmod a+x /data/scripts/composer.sh
RUN data/scripts/composer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment