diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
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" ] |