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