From 2af066038351ab0634c359a688fe712a539992b4 Mon Sep 17 00:00:00 2001 From: Jan T Date: Wed, 14 Feb 2024 17:18:30 +0200 Subject: Optimize docker image size (#91) * Move prisma to runtime dependencies * Optimize Dockerfile and build script * Fix: remove mention of generated next-env.d.ts in Dockerfile * Add missing reset.d.ts file to Dockerfile * Remove compression steps from Dockerfile and entrypoint script * Add an env file with mocked env vars added for Docker production builds * Use server actions to get runtime env vars * Refactor types and names * Rollback serverActions, use parsed Zod object for runtime env * Reintroduce featureFlags object to avoid passing secret envs to the frontend * Improve string to boolean coercion Co-authored-by: Sebastien Castiel * Run prettier autoformat * Fix type issue, rename function to match behaviour better --------- Co-authored-by: Lauri Vuorela Co-authored-by: Sebastien Castiel --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 1451f5a..5706b1e 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "ts-pattern": "^5.0.6", "uuid": "^9.0.1", "vaul": "^0.8.0", - "zod": "^3.22.4" + "zod": "^3.22.4", + "prisma": "^5.7.0" }, "devDependencies": { "@total-typescript/ts-reset": "^0.5.1", @@ -70,7 +71,6 @@ "postcss": "^8", "prettier": "^3.0.3", "prettier-plugin-organize-imports": "^3.2.3", - "prisma": "^5.7.0", "tailwindcss": "^3", "tsconfig-paths": "^4.2.0", "typescript": "^5.3.3" -- cgit v1.3