Commit graph

3 commits

Author SHA1 Message Date
jedarden
3e1451dff1 Multi-stage Dockerfile with musl cross-compilation and .dockerignore
Builder stage compiles both miroir-proxy and miroir-ctl as static musl
binaries, strips them, and copies into a scratch image. Updated
.cargo/config.toml to use target-feature=+crt-static instead of
incorrect CC/CFLAGS. Added .dockerignore to exclude non-essential files.

Image: 4.0 MB compressed (scratch base, single static binary).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 13:47:45 -04:00
jedarden
700bce2bd6 Add Dockerfile for scratch-based miroir-proxy image with musl static binary
FROM scratch image copies stripped static musl binary (4 MB compressed).
Updated .cargo/config.toml with proper musl cross-compilation settings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 13:31:37 -04:00
jedarden
c5d61b6d17 P8.1: Add scratch-based Dockerfile with OCI labels
- Uses FROM scratch for minimal image size (14.2 MB)
- Includes OCI labels: source, version, revision, licenses
- Exposes ports 7700 (main) and 9090 (metrics)
- Static musl binary for zero libc dependency

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 09:44:40 -04:00