From a719367e18bda404a48311e3273f0ae45e65b094 Mon Sep 17 00:00:00 2001 From: Jason Gwartz Date: Tue, 3 Oct 2017 20:59:01 +0200 Subject: [PATCH] Adds Dockerfile for building docker image --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..00643b9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:slim + +# To add your own config file, mount it into the container at runtime +# with `docker run -v :/src/config.js jasongwartz/haste-server` + +EXPOSE 7777 +COPY . /src +WORKDIR /src +RUN npm install + +CMD ["npm", "start"] + +