From 2d646edf0df431e9239c389df4a0ea6376557688 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Jun 2025 19:32:45 +1200 Subject: [PATCH] 'Generic Commit' --- Dockerfile.dropshell-build | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Dockerfile.dropshell-build b/Dockerfile.dropshell-build index 0c8246e..552ad6b 100644 --- a/Dockerfile.dropshell-build +++ b/Dockerfile.dropshell-build @@ -87,6 +87,19 @@ RUN curl -LO https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/${ RUN ls /usr/local/jsoncpp/include/json/version.h +# Build libpq statically +ARG POSTGRES_VERSION=16.2 +WORKDIR /tmp +RUN curl -LO https://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.gz && \ + tar xzf postgresql-${POSTGRES_VERSION}.tar.gz && \ + cd postgresql-${POSTGRES_VERSION} && \ + ./configure --prefix=/usr/local/pgsql --without-readline --without-zlib --enable-static --disable-shared && \ + cd src/interfaces/libpq && \ + make -j$(nproc) && \ + make install && \ + cd / && rm -rf /tmp/postgresql-${POSTGRES_VERSION} /tmp/postgresql-${POSTGRES_VERSION}.tar.gz + + #ARG DROGON_VERSION=1.9.5 RUN git clone --recurse-submodules https://github.com/drogonframework/drogon.git /tmp/drogon && \ #RUN git clone --branch v${DROGON_VERSION} --depth 1 https://github.com/drogonframework/drogon.git /tmp/drogon && \ @@ -113,6 +126,8 @@ RUN git clone --recurse-submodules https://github.com/drogonframework/drogon.git -DCARES_LIBRARY=/usr/local/cares/lib/libcares.a \ -DJSONCPP_INCLUDE_DIRS=/usr/local/jsoncpp/include \ -DJSONCPP_LIBRARIES=/usr/local/jsoncpp/lib/libjsoncpp.a \ + -DPostgreSQL_INCLUDE_DIR=/usr/local/pgsql/include \ + -DPostgreSQL_LIBRARY=/usr/local/pgsql/lib/libpq.a \ &&\ make -j$(nproc) && \ make install && \