From c5300bf942c178711e6c973cab7432acc2a73c4d Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 28 May 2021 21:31:59 +0200 Subject: Add `Dockerfile` and `.dockerignore`. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d638b6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:14 + +ENV PORT=8080 +ENV NODE_ENV=production + +WORKDIR /usr/src/app + +COPY package*.json ./ + +USER node + +RUN npm clean-install --only=production + +COPY . . + +EXPOSE ${PORT} + +CMD [ "node", "index.js" ] -- cgit v1.2.3