mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
chore: make registry image weigh less
This commit is contained in:
parent
d6c80ac2a1
commit
22a93f99f7
1 changed files with 9 additions and 3 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,9 +1,15 @@
|
|||
FROM rust:1.76
|
||||
FROM rust:1.77-bookworm AS builder
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR /registry
|
||||
|
||||
RUN cargo install --path .
|
||||
RUN cargo build --release
|
||||
|
||||
CMD ["pesde-registry"]
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
COPY --from=builder /target/release/pesde-registry /usr/local/bin/
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
|
||||
CMD ["/usr/local/bin/pesde-registry"]
|
||||
|
|
Loading…
Reference in a new issue