From 2f5d8764b693c74809025cd8ea47b22e9458e6be Mon Sep 17 00:00:00 2001 From: qpismont Date: Sun, 14 Jul 2024 22:36:40 +0200 Subject: [PATCH] adding dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile 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" ]