fix(prisma): use native binaryTarget and clean hardcoded engine paths
Deploy Canina / deploy (push) Failing after 35s

This commit is contained in:
parsa aghaei committed 2026-08-15 16:01:27 +03:30
1 parent 8b0d3d972e
commit dbbf75e3c5
4 files changed
+1 -7

No files matched your search

-2
View File
@@ -14,7 +14,6 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit
COPY . .
ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x
RUN ./node_modules/.bin/prisma generate && npm run build
FROM node:20-alpine
@@ -28,7 +27,6 @@ COPY --chown=node:node --from=builder /app/dist ./dist
COPY --chown=node:node --from=builder /app/prisma ./prisma
COPY --chown=node:node --from=builder /app/prisma/tsconfig.seed.json ./prisma/tsconfig.seed.json
COPY --chown=node:node --from=builder /app/prisma/scientificTerms.ts ./prisma/scientificTerms.ts
ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x
EXPOSE 3000
USER node
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main"]