Feature/ci-encdec

This commit is contained in:
Matthew Binning 2026-01-16 16:22:12 -08:00
parent 483032df78
commit d3a2d06e2a
3 changed files with 120 additions and 22 deletions

View file

@ -1,19 +1,7 @@
FROM nixos/nix:latest
FROM rust:latest
WORKDIR /app
COPY . .
RUN mkdir -p ~/.config/nix && \
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf && \
nix build .#app
# Extract the built binary
RUN cp -rL result/* /tmp/app/ || cp result /tmp/app/hello-world
# Use a minimal runtime image - no system dependencies needed!
FROM debian:bookworm-slim
# All functionality is in Rust crates, no need for system binaries
COPY --from=0 /tmp/app/ /usr/local/bin/
CMD ["/usr/local/bin/hello-world"]
RUN cargo build --release
# RFE: Statically link for a scratch runtime stage.
CMD ["/app/target/release/hello-world"]