ARG IMAGE=rust:bookworm ARG FEATURES FROM $IMAGE AS build WORKDIR /app/src COPY src src COPY Cargo.lock Cargo.lock COPY Cargo.toml Cargo.toml RUN cargo install --path . --root /app/build --features "${FEATURES}" FROM $IMAGE AS runner LABEL org.opencontainers.image.source="https://git.v0l.io/Kieran/ingress2analytics" LABEL org.opencontainers.image.licenses="MIT" LABEL org.opencontainers.image.authors="Kieran" WORKDIR /app COPY --from=build /app/build . ENTRYPOINT ["./bin/ingress2analytics"]