Production container with pre-baked service binaries #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The current dev container (PR #28) ships a Rust toolchain and builds services from source at startup. This works for development but has drawbacks for production:
Goal
A production container that starts serving immediately with all binaries pre-built.
Approach
Builder stage
Extend the current builder stage to also build all service binaries:
Runtime stage
Switch from
rust:slim-bookworm(~800 MB) todebian:bookworm-slim(~80 MB):No Rust toolchain, no git, no SSH keys needed at runtime.
Expected result
Prerequisites
Notes
hero_zero:devandhero_zero:<version>