From 3388e0f58440f25ceaefad954dfc7097df4a3de1 Mon Sep 17 00:00:00 2001 From: Daniel Shely Date: Wed, 12 Aug 2020 13:39:11 +0300 Subject: [PATCH] added dockerfile and .dockerignore --- .dockerignore | 2 ++ Dockerfile | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..93f1361 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ec003ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:12 + +#create working directory +WORKDIR /usr/src/anyway-infographic-backend + +COPY package*.json ./ + +RUN npm install + +COPY . . + +EXPOSE 4000 + +ENV NODE_ENV development + +CMD ["node", "./bin/www"] + +