Skip to content

Conversation

@jbergstroem
Copy link
Contributor

@jbergstroem jbergstroem commented Mar 11, 2023

The current Dockerfile uses Alpine with a set of glibc libraries. This is not sustainable for a few reasons (see #1567). Since container size is important, we switch to distroless which allows a minimal host but based on debian 11.

Additionally, add an entrypoint that points to bun.

This PR increases the uncompressed container size by ~2MB.

Sidenote: google has aarch64 versions which makes it possible to release this for additional architectures.


Todo

  • more testing, I don't use bun much in images
  • fix CI build/label error
  • add opencontainer labels
  • explore more architectures than amd64

The current Dockerfile uses Alpine with a set of glibc libraries.
Seeing how size is a high priority, we switch to distroless which allows
a minimal host but based on debian 11.

Additionally, add a entrypoint that points to bun.
@jbergstroem jbergstroem changed the title feat: replace alpine/glibc with distroless feat(docker): replace alpine/glibc with distroless Mar 11, 2023
@jbergstroem
Copy link
Contributor Author

Closing as obsolete as of landing 2dd99a3.

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