Skip to content

Instantly share code, notes, and snippets.

@briward
Created January 27, 2017 15:04
Show Gist options
  • Save briward/e7ee34bbf85a95eb62c212dcd9020e82 to your computer and use it in GitHub Desktop.
Save briward/e7ee34bbf85a95eb62c212dcd9020e82 to your computer and use it in GitHub Desktop.
FROM quay.io/continuouspipe/php5.6-apache:latest
MAINTAINER Brian Ward <bward@inviqa.com>
# 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