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 new file mode 100644 index 0000000..e61506c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:14 +WORKDIR /usr/src/app + +ENV PORT=8080 + +EXPOSE 8080 + +COPY package.json ./ +COPY yarn.lock ./ + +RUN yarn install + +COPY . . + +CMD ["yarn", "prod"]