a785747c37
ci / build (ubuntu) (push) Has been cancelled
ci / macos smoke (push) Has been cancelled
ci / windows smoke (push) Has been cancelled
selfhost-loop / bootstrap determinism (push) Has been cancelled
ci / unit + fmt (push) Has been cancelled
ci / examples (push) Has been cancelled
ci / goldens + tools (push) Has been cancelled
ci / apps (push) Has been cancelled
ci / selfhost smoke (push) Has been cancelled
ci / CI gate (push) Has been cancelled
Ship the QUALITY_PLAN platform focus: thin/minimal runtime, --static/--target, Nexus HTTPS/mTLS with graceful stop, lock checksums + install --locked, selfhost registry (search/add/HTTP), containers, and CI smokes for cloud path.
21 lines
551 B
Docker
21 lines
551 B
Docker
# Session 75 — fully-static Bux binary in a distroless/scratch container.
|
|
#
|
|
# Build (from repo root):
|
|
# # 1) produce a static host binary with the bootstrap compiler
|
|
# ./buxc --static --release build /path/to/pkg
|
|
# # or use the helper:
|
|
# ./tools/build_static_hello.sh
|
|
#
|
|
# # 2) package it
|
|
# docker build -f examples/docker/Dockerfile.static \
|
|
# --build-arg BIN=build/hello_static \
|
|
# -t bux-hello-static .
|
|
#
|
|
# Run:
|
|
# docker run --rm bux-hello-static
|
|
|
|
ARG BIN=build/hello_static
|
|
FROM scratch
|
|
COPY ${BIN} /app
|
|
ENTRYPOINT ["/app"]
|