diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..13ded1c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:18.17-alpine as builder +RUN apk add --no-cache git +WORKDIR /app +COPY . . +RUN yarn install +RUN yarn build +FROM node:18.17-alpine +WORKDIR /app +COPY --from=builder /app/node_modules ./node_modules +COPY --from=builder /app/dist ./dist +COPY --from=builder /app/package.json ./package.json +CMD ["node", "--max-old-space-size=8192","--max-http-header-size", "512000", "-r", "dotenv/config", "dist/main"]