# Builds an image containing the originz binary and little else.
FROM rust:slim
COPY . /originz
RUN cd /originz && cargo build --release

FROM debian:buster-slim
COPY --from=0 /originz/target/release/originz /originz
RUN chmod +x /originz
