Created
January 27, 2017 15:04
-
-
Save briward/e7ee34bbf85a95eb62c212dcd9020e82 to your computer and use it in GitHub Desktop.
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 characters
FROM quay.io/continuouspipe/php5.6-apache:latest | |
MAINTAINER Brian Ward <[email protected]> | |
# Install base packages \ | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install \ | |
php-gd \ | |
php-xml \ | |
php-json \ | |
nano \ | |
mysql-client \ | |
&& \ | |
# Configure Node dependencies \ | |
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ | |
apt-get install -yq nodejs && \ | |
npm config set --global loglevel warn && \ | |
npm install --global node-gyp && \ | |
npm install --global gulp && \ | |
npm rebuild node-sass | |
&& \ | |
# Clean the image \ | |
apt-get auto-remove -qq -y \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
USER build | |
# Install Drupal's Drush tool. \ | |
RUN composer global require drush/drush \ | |
&& composer global clear-cache | |
USER root | |
RUN ln -s /home/build/.composer/vendor/bin/drush /usr/local/bin/ | |
COPY ./etc/ /etc/ | |
COPY ./usr/ /usr/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment