Skip to content

Instantly share code, notes, and snippets.

@kanatzidis
Created August 17, 2015 17:09
Show Gist options
  • Save kanatzidis/24a97988e52bc284fdc6 to your computer and use it in GitHub Desktop.
Save kanatzidis/24a97988e52bc284fdc6 to your computer and use it in GitHub Desktop.
FROM centos:centos6
# 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
COPY . /src
# Install app dependencies
RUN cd /src; npm install
EXPOSE 8080
CMD ["node", "/src/index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment