Skip to content

Commit 7994a66

Browse files
authored
Fix Docker image runs erroring due to glibc incompatability (#572)
Fix Docker image builds breaking due to glibc incompatability
1 parent 9937193 commit 7994a66

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
FROM rust:1 AS builder
1+
FROM rust:1-slim-bookworm AS builder
2+
3+
RUN apt-get update && \
4+
apt-get install -y build-essential
5+
26
COPY . /app
37
WORKDIR /app
48
RUN cargo build --release
59

6-
FROM debian:bullseye-slim
10+
FROM debian:bookworm-slim
711
COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat
812
COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml
913
WORKDIR /etc/pgcat

0 commit comments

Comments
 (0)