From 4d2562c20d631ab7ff742206c359978a2c3c66f1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 18 Mar 2014 09:28:23 -0400 Subject: [PATCH] Dockerize hastebin --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b04372 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:12.04 + +RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list +RUN apt-get update +RUN apt-get -y install python-software-properties build-essential +RUN add-apt-repository -y ppa:chris-lea/node.js +RUN apt-get update +RUN apt-get -y install nodejs + +WORKDIR /opt/app +ADD . /opt/app + +ENV NODE_ENV docker + +RUN npm install --production + +EXPOSE 7777 + +ENTRYPOINT ["node"] + +CMD ["server.js"] \ No newline at end of file