diff options
| author | Jan T <jans.tuomi@gmail.com> | 2024-02-14 17:18:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 10:18:30 -0500 |
| commit | 2af066038351ab0634c359a688fe712a539992b4 (patch) | |
| tree | 3ca4bb30f4813ff7e7d87354c5fdd83dcb19cb59 /scripts/container-entrypoint.sh | |
| parent | 50525ad8810de356856eb098a1e0882ce3607b9f (diff) | |
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 <sebastien@castiel.me>
* Run prettier autoformat
* Fix type issue, rename function to match behaviour better
---------
Co-authored-by: Lauri Vuorela <lauri.vuorela@gmail.com>
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'scripts/container-entrypoint.sh')
| -rwxr-xr-x | scripts/container-entrypoint.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/container-entrypoint.sh b/scripts/container-entrypoint.sh index 364787e..5871314 100755 --- a/scripts/container-entrypoint.sh +++ b/scripts/container-entrypoint.sh @@ -1,3 +1,6 @@ #!/bin/bash -prisma migrate deploy + +set -euxo pipefail + +npx prisma migrate deploy npm run start |
