The scripts/start-local-db.sh script was failing for modern PostgreSQL Docker images (version 18+) due to an incorrect volume mount point.
This commit provides a minimal fix by changing the volume mount from /var/lib/postgresql/data to /var/lib/postgresql, which is the correct path for modern postgres images.
This will replace the `sh` process from the container entrypoint with the node process as PID 1, to properly handle SIGTERM signals and gracefully shut down the container.
Currently, `sh` will intercept any signals and not forward them to node, leaving the container in the terminating state before docker force kills it after the 10s grace period. This means that db connections won't be closed and that requests will get interrupted during shutdown.
* 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>
* add production build
* add back updates and use slim image
* udpate command
* ignore scripts
* add workdir
* fix workdirs
* docker image improvements
* use .example instead
* use dummy data instead
* remove unused env var and add comment
* fix entrypoints
* change name of script and add possibility for different commands
* change to safer default for volume
* add instructions for the dev docker container
* update copy
* add empty lines under topics to keep uniformity
* most RUN's in a single command
* add comment about volumes for dev target
* remove dev workflow
* remove dev workflow from readme
* Prettify README
---------
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>