FROM rust:1.89.0-bookworm AS builder
WORKDIR /app
COPY ../ /app
RUN cargo build --release
#
FROM rust:1.89-slim-bookworm AS api
RUN apt-get update
RUN apt-get install -y ca-certificates
COPY --from=builder /app/target/release/pds_gatekeeper /usr/local/bin/pds_gatekeeper
CMD ["pds_gatekeeper"]