Docker for noobs
Source Create your Dockerfile FROM debian:jessie # Replace shell with bash so we can source files RUN rm /bin/sh && ln -s /bin/bash /bin/sh # Set environment variables ENV appDir /var/www/app/current # Run updates and install deps RUN apt-get update RUN apt-get install -y -q --no-install-recommends \ apt-transport-https \ build-essential \ ca-certificates \ curl \ g++ \ gcc \ git \ make \ nginx \ sudo \ wget \ && rm -rf /var/lib/apt/lists/* \ && apt-get -y autoclean ENV NVM_DIR /usr/local/nvm ENV NODE_VERSION 6.9.1 # Install nvm with node and npm RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash \ && source $NVM_DIR/nvm.sh \ && nvm install $NODE_VERSION \ ...