Skip to content

Instantly share code, notes, and snippets.

@adamkdean
Last active August 29, 2015 14:02
Show Gist options
  • Save adamkdean/99a97cde9c9723b99adc to your computer and use it in GitHub Desktop.
Save adamkdean/99a97cde9c9723b99adc to your computer and use it in GitHub Desktop.
# DOCKER-VERSION 0.9.1
FROM ubuntu
MAINTAINER Adam K Dean
# Update container with dependencies
RUN apt-get update
RUN apt-get install -y python-software-properties python g++ make software-properties-common
# Install Node.js
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get install -y nodejs
RUN ln -sf /usr/bin/nodejs /usr/bin/node
# Add source and install packages
RUN mkdir /var/www
ADD . /var/www
RUN cd /var/www; npm install
EXPOSE 80
CMD ["node", "/var/www/src/index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment