FROM rust:1.90-alpine AS builder

WORKDIR /build
COPY bin/mock-upstream.rs .

RUN rustc --edition 2024 mock-upstream.rs -o mock-upstream

FROM alpine:3.19
COPY --from=builder /build/mock-upstream /usr/local/bin/

EXPOSE 3001
CMD ["mock-upstream"]
