Created
June 2, 2014 13:13
-
-
Save adamkdean/c3b68a47519ba52f7e96 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.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