mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
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:
@@ -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
|
||||
});
|
||||
|
Reference in New Issue
Block a user