Add Docker support with Dockerfile and docker-compose.yml, update build scripts and README for containerized deployment.

- Updated server `Bun.build` configuration: adjusted `outdir`, added `format` as `esm`, and set `@open-gsio/client` to external.
- Expanded README with Docker instructions.
- Added new package `@open-gsio/analytics-worker`.
- Upgraded dependencies (`vite`, `typescript`, `bun`) and locked `pnpm` version in `package.json`.
This commit is contained in:
geoffsee
2025-06-25 18:13:52 -04:00
parent 1dab5aaa14
commit c8e6da2d15
10 changed files with 199 additions and 48 deletions

View File

@@ -1,9 +1,10 @@
// handles builds the server into js
await Bun.build({
entrypoints: ['./server.ts'],
outdir: '../dist',
entrypoints: [import.meta.dir + '/server.ts'],
outdir: './dist', // Changed from '../dist' to './dist'
minify: true,
target: 'node',
splitting: true,
format: 'esm', // Explicitly set ESM format
throw: true,
external: ['@open-gsio/client'], // Mark client as external to avoid bundling issues
});