Last active
August 29, 2015 14:02
-
-
Save adamkdean/99a97cde9c9723b99adc to your computer and use it in GitHub Desktop.
This file contains 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
# 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