region-restriction-checker/Dockerfile
2022-11-23 08:09:10 +00:00

22 lines
497 B
Docker

FROM rustlang/rust:nightly-slim AS builder
WORKDIR /app/
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/app/target/ \
cargo build --release && \
cp target/release/region-restriction-checker .
FROM debian:stable-slim
RUN apt-get update && \
apt-get install -y ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app/
COPY --from=builder /app/region-restriction-checker .
CMD ["/app/region-restriction-checker"]