Created
July 28, 2016 14:19
-
-
Save jimbojsb/c928ed7248b2296e83d96dc6138dbfa0 to your computer and use it in GitHub Desktop.
Revisions
-
jimbojsb created this gist
Jul 28, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ FROM offers/baseimage:0.2.2 EXPOSE 80 ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/seaglass/vendor/bin ENV APPLICATION_ENV production RUN echo "America/Chicago" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata RUN curl https://download.newrelic.com/548C16BF.gpg | apt-key add - && echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list RUN apt-add-repository -y ppa:ondrej/php \ && DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -qqy --force-yes --no-install-recommends \ git \ php-cli \ php-xdebug \ php-common \ php-fpm \ php-memcached \ php-mbstring \ php-zip \ ca-certificates \ nginx \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN phpdismod -v 7.0 -s ALL xdebug COPY docker/php.ini /etc/php/7.0/fpm/php.ini COPY docker/php.ini /etc/php/7.0/cli/php.ini COPY docker/php-fpm.conf /etc/php/7.0/fpm/php-fpm.conf WORKDIR /seaglass # install composer and install composer packages RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local && mv /usr/local/composer.phar /usr/local/bin/composer COPY composer.json composer.lock /seaglass/ RUN composer install --no-ansi --no-dev --optimize-autoloader ADD . /seaglass