mirror of
https://github.com/casey/intermodal
synced 2024-09-29 21:04:44 +00:00
Add dockerfile (#533)
This commit is contained in:
parent
b9c5cdc0bc
commit
e2a4815060
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM docker.io/library/rust:1.78.0-bookworm AS builder
|
||||
|
||||
WORKDIR /usr/local/src
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM gcr.io/distroless/cc-debian12:nonroot
|
||||
|
||||
COPY --from=builder /usr/local/src/target/release/imdl /usr/local/bin/imdl
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/imdl"]
|
Loading…
Reference in a new issue