From d8d6138c855923de0457f2c9f9b2c6e1f86e99a4 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 25 May 2021 21:17:08 +0100 Subject: [PATCH] I don't know how to use docker :( --- .dockerignore | 1 + Dockerfile | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e69de29..57cccb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:16 + +WORKDIR /usr/src/app +COPY package*.json ./ + +RUN npm i --production + +COPY . . +CMD ["npm", "start"] \ No newline at end of file