chore: make registry image weigh less

This commit is contained in:
daimond113 2024-05-05 21:31:21 +02:00
parent d6c80ac2a1
commit 22a93f99f7
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -1,9 +1,15 @@
FROM rust:1.76 FROM rust:1.77-bookworm AS builder
COPY . . COPY . .
WORKDIR /registry 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"]