adding dockerfile

This commit is contained in:
qpismont 2024-07-14 22:36:40 +02:00
parent d1bee14213
commit 2f5d8764b6

19
Dockerfile Normal file
View file

@ -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" ]