mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
13 lines
491 B
Text
13 lines
491 B
Text
|
|
# Stage 1: Build libpq
|
||
|
|
FROM ubuntu:noble AS crossbuild-libpq-builder
|
||
|
|
|
||
|
|
RUN apt-get update && \
|
||
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||
|
|
ca-certificates libpq-dev
|
||
|
|
|
||
|
|
# Stage 2: Copy the compiled libpq.so to a more accessible directory
|
||
|
|
FROM ubuntu:noble AS crossbuild-libpq-artifacts
|
||
|
|
|
||
|
|
# Copy libpq.so from the crossbuild-libpq stage to the /artifacts directory
|
||
|
|
COPY --from=crossbuild-libpq-builder /usr/lib/x86_64-linux-gnu/libpq.so /artifacts/libpq.so
|