adding dockerfile
This commit is contained in:
parent
d1bee14213
commit
2f5d8764b6
1 changed files with 19 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal 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" ]
|
Loading…
Reference in a new issue