feat: add docker files

This commit is contained in:
2026-07-07 17:59:12 +03:30
parent 7b44542ce7
commit 03ba4ceabe
7 changed files with 118 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY .env.production .env
EXPOSE 8000
CMD ["node","dist/main.js"]