Skip to content

Commit 02f11f2

Browse files
liweinanclaude
andcommitted
fix: install libpq-dev for diesel postgres linking
upctl-svc transitively depends on diesel (via htycommons/AuthCore) which requires libpq for PostgreSQL support. Also install libpq5 in the runtime stage for the dynamic library. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent db719b9 commit 02f11f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎upctl-svc/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM rust:slim-bookworm AS builder
22

3-
RUN apt-get update && apt-get install -y pkg-config libssl-dev git && rm -rf /var/lib/apt/lists/*
3+
RUN apt-get update && apt-get install -y pkg-config libssl-dev libpq-dev git && rm -rf /var/lib/apt/lists/*
44

55
WORKDIR /app
66
RUN git clone --depth 1 https://github.com/alchemy-studio/upctl-svc.git .
77

88
RUN cargo build --release
99

1010
FROM debian:bookworm-slim
11-
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
11+
RUN apt-get update && apt-get install -y ca-certificates libpq5 && rm -rf /var/lib/apt/lists/*
1212

1313
COPY --from=builder /app/target/release/upctl-svc /usr/local/bin/
1414

0 commit comments

Comments
 (0)