add dockerfile

pull/2/head
Derit Agustin 2024-06-03 10:32:22 +00:00
parent da9145078c
commit 41330cc74a
1 changed files with 12 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -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"]