Add quotation and tariff backend flow
All checks were successful
Build Docker Image / build (push) Successful in 3m32s

This commit is contained in:
Ruslan Bakiev
2026-04-11 09:00:20 +07:00
parent 3a84d7aace
commit e8051260db
7 changed files with 1947 additions and 115 deletions

View File

@@ -7,12 +7,14 @@ RUN npm ci
FROM deps AS builder
COPY prisma ./prisma
RUN npx prisma generate
COPY tsconfig.json ./
COPY src ./src
RUN npm run build
FROM deps AS runtime-deps
RUN npm prune --omit=dev
FROM node:22-alpine AS runtime
@@ -23,9 +25,12 @@ WORKDIR /app
COPY package.json ./
COPY --from=runtime-deps /app/node_modules ./node_modules
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
COPY --from=builder /app/node_modules/@prisma/client ./node_modules/@prisma/client
COPY --from=builder /app/dist ./dist
COPY prisma ./prisma
COPY scripts ./scripts
EXPOSE 8000
CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && node dist/index.js"]
CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && set +e && npx prisma migrate resolve --applied 0_init 2>/dev/null; set -e && npx prisma migrate deploy && node dist/index.js"]