Skip to content

Compile to standalone binary for Docker image#22

Draft
mpoc wants to merge 1 commit intomasterfrom
compiled-docker-binary
Draft

Compile to standalone binary for Docker image#22
mpoc wants to merge 1 commit intomasterfrom
compiled-docker-binary

Conversation

@mpoc
Copy link
Owner

@mpoc mpoc commented Mar 8, 2026

Compiles the server to a standalone Bun binary so the Docker image only needs alpine (no Bun runtime). Static files are embedded in the binary via Bun.embeddedFiles, replacing @elysiajs/static. Cuts image size from 634MB to 157MB and halves memory usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant