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"] + +