Align backend dependencies
Build and deploy Docker image / build (push) Successful in 3m39s

This commit is contained in:
Ruslan Bakiev
2026-06-07 10:52:19 +07:00
parent d7ebefd0ee
commit c65cc01db2
6 changed files with 1222 additions and 1063 deletions
+4 -2
View File
@@ -7,12 +7,13 @@ RUN npm ci
FROM deps AS builder
COPY prisma.config.ts ./
COPY prisma ./prisma
RUN npx prisma generate
RUN BILLING_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres npx prisma generate
COPY tsconfig.json ./
COPY src ./src
RUN npm run build
RUN BILLING_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres npm run build
FROM deps AS runtime-deps
@@ -28,6 +29,7 @@ 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.config.ts ./
COPY prisma ./prisma
COPY scripts ./scripts