From f0e7aa1c8a105ae9af3b7bd149071f1eb11aab1e Mon Sep 17 00:00:00 2001 From: Marian Oancea Date: Wed, 28 Jan 2015 02:52:57 +0200 Subject: [PATCH] added Docker file (fixes #1) --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0ca2a5d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +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 3000 +CMD ["node", "/src/bin/www"] \ No newline at end of file