Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
fix(client): bake glibc Prisma engines at build time to avoid launch-time network calls (#1414)
João Costaf5bffaa6dd87
diff --git a/src/Dockerfile b/src/Dockerfileindex 6f11345f..7666c3b2 100644--- a/src/Dockerfile+++ b/src/Dockerfile@@ -10,6 +10,15 @@ WORKDIR /app/client# Copy package.json and package-lock.json to the working directory & the rest of the application codeCOPY ./client/ .+# Bake Prisma CLI/Schema engines for the Alpine builder and the Debian+# bookworm runtime (OpenSSL 3). schema.prisma `binaryTargets` only covers the+# Query Engine; CLI engines are resolved at install time for the builder+# platform. This env replaces native detection, so both musl builder+# targets must stay listed — release publishes linux/amd64 and linux/arm64/v8.+# Without the matching glibc engines, entrypoint.sh (`prisma migrate deploy`+# / `prisma generate`) downloads from binaries.prisma.sh and fails air-gapped.+ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x,linux-musl-arm64-openssl-3.0.x,debian-openssl-3.0.x,linux-arm64-openssl-3.0.x+# Install dependencies, generate Prisma client & Build the Next.js applicationRUN npm install && npx prisma generate && npm run builddiff --git a/src/client/prisma/schema.prisma b/src/client/prisma/schema.prismaindex c2711ef3..47031d49 100644--- a/src/client/prisma/schema.prisma+++ b/src/client/prisma/schema.prisma@@ -1,6 +1,6 @@generator client {provider = "prisma-client-js"- binaryTargets = ["native", "debian-openssl-1.1.x", "linux-arm64-openssl-1.1.x", "linux-musl-openssl-3.0.x"]+ binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x", "linux-musl-openssl-3.0.x"]}datasource db {