Skip to content

Instantly share code, notes, and snippets.

@bbredewold
Created June 14, 2016 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbredewold/e2c1f4540bb0038bdf1aa10f9b323bd7 to your computer and use it in GitHub Desktop.
Save bbredewold/e2c1f4540bb0038bdf1aa10f9b323bd7 to your computer and use it in GitHub Desktop.
Dockerfile Webdevelopment Deployment
FROM debian:latest
MAINTAINER Bert Bredewold <bbredewold@intothesource.com>
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list \
&& apt-get -y update && apt-get install -y \
build-essential \
curl \
php5-cli \
git \
git-ftp \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y nodejs \
&& npm install --global gulp
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === '070854512ef404f16bac87071a6db9fd9721da1684cd4589b1196c3faf71b9a2682e2311b36a5079825e155ac7ce150d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment