imgproxy-rs/Dockerfile
2024-07-14 22:36:40 +02:00

19 lines
265 B
Docker

FROM rust:1.79 AS builder
WORKDIR /app
COPY src/ src/
COPY Cargo.lock .
COPY Cargo.toml .
RUN cargo build --release
FROM rust:1.79 AS runner
WORKDIR /app
COPY --from=builder /app/target/release/imgproxy-rs .
RUN chmod +x imgproxy-rs
CMD [ "./imgproxy-rs" ]