diff --git a/Dockerfile b/Dockerfile index ec29182..f2d5806 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -FROM rust:1 AS builder +FROM rust:1-slim-bookworm AS builder + +RUN apt-get update && \ + apt-get install -y build-essential + COPY . /app WORKDIR /app RUN cargo build --release -FROM debian:bullseye-slim +FROM debian:bookworm-slim COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml WORKDIR /etc/pgcat