Skip to content

Commit c688e80

Browse files
committed
port to main dockerfile to fix conflicts
Signed-off-by: clux <[email protected]>
1 parent 3ff6347 commit c688e80

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ RUN curl -sSL https://ftp.postgresql.org/pub/source/v$PQ_VER/postgresql-$PQ_VER.
104104
--without-readline \
105105
--with-openssl \
106106
--prefix=$PREFIX --host=x86_64-unknown-linux-musl && \
107+
cd src/common && make -s -j$(nproc) all && make -s install && cd ../.. && \
108+
cd src/port && make -s -j$(nproc) all && make -s install && cd ../.. && \
107109
cd src/interfaces/libpq make -s -j$(nproc) all-static-lib && make -s install install-lib-static && \
108110
cd ../../bin/pg_config && make -j $(nproc) && make install && \
109111
cd .. && rm -rf postgresql-$PQ_VER
@@ -126,11 +128,15 @@ RUN curl -sSL https://www.sqlite.org/2022/sqlite-autoconf-$SQLITE_VER.tar.gz | t
126128
# It needs the non-musl pg_config to set this up with libpq-dev (depending on libssl-dev)
127129
# See https://github.com/sgrif/pq-sys/pull/18
128130
ENV PATH=$PREFIX/bin:$PATH \
131+
TARGET=x86_64_unknown_linux_musl \
132+
HOST=x86_64_unknown_linux_gnu \
129133
PKG_CONFIG_ALLOW_CROSS=true \
130134
PKG_CONFIG_ALL_STATIC=true \
131135
PQ_LIB_STATIC_X86_64_UNKNOWN_LINUX_MUSL=true \
132136
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig \
137+
PKG_CONFIG_PATH_X86_64_UNKNOWN_LINUX_MUSL=$PREFIX/lib/pkgconfig \
133138
PG_CONFIG_X86_64_UNKNOWN_LINUX_GNU=/usr/bin/pg_config \
139+
PG_CONFIG_X86_64_UNKNOWN_LINUX_MUSL=/musl/bin/pg_config \
134140
OPENSSL_STATIC=true \
135141
OPENSSL_DIR=$PREFIX \
136142
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \

0 commit comments

Comments
 (0)