diff --git a/Dockerfile b/Dockerfile index d979d09..c6dfa85 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +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"]