openssl alpine binary for Docker

This commit is contained in:
Muhammad Ibrahim
2025-11-15 01:03:43 +00:00
parent bfc1cc3bf0
commit 0dbcc3c2c3
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {

View File

@@ -47,7 +47,7 @@ COPY --chown=node:node backend/ ./backend/
RUN npm cache clean --force &&\
rm -rf node_modules ~/.npm /root/.npm &&\
npm install --workspace=backend --ignore-scripts --legacy-peer-deps --no-audit --prefer-online --fetch-retries=3 --fetch-retry-mintimeout=20000 --fetch-retry-maxtimeout=120000 &&\
cd backend && PRISMA_CLI_BINARY_TYPE=binary npm run db:generate &&\
cd backend && npx prisma generate &&\
cd .. && npm prune --omit=dev --workspace=backend &&\
npm cache clean --force