deploy: copy prisma config and ditch dotenv from the config itself

Pedro Lucas Porcellis porcellis@eletrotupi.com 11 days ago d514519d4f8fe5f8547a2f8b0c67f21e790b7480
Parents: aa62de4
2 file(s) changed
  • api/Dockerfile.production +1 -0
  • api/prisma.config.ts +0 -1
api/Dockerfile.production
@@ -14,6 +14,7 @@ COPY --chown=${UID}:${GID} package*.json ./
14 14 RUN npm ci --frozen-lockfile
15 15
16 16 COPY --chown=${UID}:${GID} prisma ./prisma/
17 + COPY --chown=${UID}:${GID} ./prisma.config.ts ./
17 18 RUN npx prisma generate
18 19
19 20 COPY --chown=${UID}:${GID} . .
api/prisma.config.ts
@@ -1,4 +1,3 @@
1 - import "dotenv/config";
2 1 import { defineConfig } from "prisma/config";
3 2
4 3 export default defineConfig({