Refactor the Dockerfile to separate dependency installation and type generation from the runtime environment. Changes: - Moved `bun prisma generate` to the build phase to ensure type definitions are created during image build rather than at runtime. - Updated the ENTRYPOINT to run `bun prisma migrate deploy` before starting the application. This ensures database migrations are applied automatically upon container startup, supporting production deployments with incremental schema changes. - Added missing newline at the end of the file for compliance. This change ensures that the application handles schema updates safely in production without requiring a separate migration step outside the container. |
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| bun-env.d.ts | ||
| bun.lock | ||
| bunfig.toml | ||
| docker-compose.yml | ||
| dockerfile | ||
| package.json | ||
| prisma.config.ts | ||
| README.md | ||
| tsconfig.json | ||