Skip to content

Instantly share code, notes, and snippets.

@adamkdean
Created June 2, 2014 13:13
Show Gist options
  • Save adamkdean/c3b68a47519ba52f7e96 to your computer and use it in GitHub Desktop.
Save adamkdean/c3b68a47519ba52f7e96 to your computer and use it in GitHub Desktop.
# DOCKER-VERSION 0.3.4
FROM centos:6.4
# Enable EPEL for Node.js
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN yum install -y npm
# Bundle app source
ADD . /src
# Install app dependencies
RUN cd /src; npm install
# App binds to port 8080 so expose the port
EXPOSE 8080
# Define command to run our app using cmd
CMD ["node", "/src/index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment