This commit is contained in:
+4
-2
@@ -7,12 +7,13 @@ RUN npm ci
|
||||
|
||||
FROM deps AS builder
|
||||
|
||||
COPY prisma.config.ts ./
|
||||
COPY prisma ./prisma
|
||||
RUN npx prisma generate
|
||||
RUN KYC_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres npx prisma generate
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
RUN npm run build
|
||||
RUN KYC_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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user