From 5a3e927ed81a8de83a8988b65a62434fac5fd7ef Mon Sep 17 00:00:00 2001 From: Rafal Proszowski Date: Fri, 2 Nov 2018 11:18:23 +0000 Subject: [PATCH] Add Docker image --- .dockerignore | 2 ++ Dockerfile | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..144e527cd9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +usage-data-config.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..fff3a796cd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:8.12-alpine + +ADD . /app +WORKDIR /app + +ARG COLLECT_USAGE_DATA=true + +RUN npm install +RUN echo "{\"collectUsageData\": $COLLECT_USAGE_DATA}" > usage-data-config.json + +EXPOSE 3000 +CMD ["npm", "start"]