Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

@ibetitsmike ibetitsmike commented Dec 3, 2025

Fix the Docker smoke test and significantly improve Docker image size.

Changes

  1. Fix version field check - use git_describe instead of version (the /version endpoint returns git_describe)

  2. Bundle server with esbuild - reduces runtime dependencies from ~2GB node_modules to ~8MB bundle

    • Only native modules (@lydell/node-pty) are kept external
    • Uses ESM alias for jsonc-parser to avoid UMD bundling issues

Results

Metric Before After
Image size ~2GB 365MB
Build time ~3min ~2min

Generated with mux

@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2025
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2025
@ibetitsmike ibetitsmike force-pushed the fix-docker-smoke-test branch from 146c517 to 20b8404 Compare December 3, 2025 12:45
- Fix version field check: use git_describe instead of version
- Bundle server with esbuild (~8MB) instead of copying node_modules (~2GB)
- Final image size reduced from ~2GB to ~365MB
- Only copy native modules (@lydell/node-pty) needed at runtime
@ibetitsmike ibetitsmike force-pushed the fix-docker-smoke-test branch from 20b8404 to 221c816 Compare December 3, 2025 13:34
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2025
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
Merged via the queue into main with commit 8f162fb Dec 3, 2025
14 checks passed
@ibetitsmike ibetitsmike deleted the fix-docker-smoke-test branch December 3, 2025 13:52
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