diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..23af9f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +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" ]