Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tomdavidson
Copy link

Adds Docker/Podman support with optimized multi-stage builds, automated OCI metadata extraction, and build script.

  • Multi-stage Dockerfile with distroless runtime (~124MB production image )
  • BuildKit cache mounts for faster rebuilds
  • Automated build script (build/container.sh) with OCI label generation from package.json & git.
  • 10x size reduction using @vercel/ncc bundling (~24MB to ~1.4MB

This PR does add the ncc dev dependency and a 'bundle' npm run script used in the container build, but does not change existing workflow.

New Files:

  • Dockerfile - Optimized multi-stage build
  • build/container.sh - Automated build tooling
  • .dockerignore - Minimal build context

Updates:

  • Added author/homepage to package.json
  • Adds bundle run script to package.json
  • Adds @vercel/ncc bundler dev dependency
  • Updates README with container install instruction

Adds Docker/Podman support with multi-stage builds and automated metadata extraction.
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