From 34cfb9b1fb4e3d96b33ed7ea16f2f62e6d8837f5 Mon Sep 17 00:00:00 2001 From: hi019 <65871571+hi019@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:15:18 -0400 Subject: [PATCH] Fix Docker image builds breaking due to glibc incompatability --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec29182a..f2d58062 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