1 2 3 4 5 6 7 8
# Builds an image containing the kapiti binary and little else. FROM rust:slim COPY . /kapiti RUN cd /kapiti && cargo build --all-targets --release FROM debian:buster-slim COPY --from=0 /kapiti/target/release/kapiti /kapiti RUN chmod +x /kapiti