Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docker build process #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Paul1365972
Copy link
Contributor

Just downloaded our official docker image and was surprised to find it was nearly 1 GB in size. I've slimmed it down to a much more reasonable ~16 MB.
The main change is adding a build stage and switching to musl, which lets us create a fully static binary without any external dependencies. This means we can run it standalone without needing any environment.
Side note: Docker builds now no longer use the clang linker. I don't think this should cause any issues, but let me know if there was a specific reason we were using it before?

@Olek47
Copy link
Contributor

Olek47 commented Feb 5, 2025

Good job!
I think you should also be copying the rust-toolchain.yaml file into the container in case someone changes to a different rust channel.

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.

2 participants