Created
June 14, 2016 12:36
-
-
Save bbredewold/e2c1f4540bb0038bdf1aa10f9b323bd7 to your computer and use it in GitHub Desktop.
Dockerfile Webdevelopment Deployment
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 debian:latest | |
MAINTAINER Bert Bredewold <[email protected]> | |
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