postgresql
Source
FROM stagex/pallet-clang-gnu-busybox AS build
COPY --from=stagex/pallet-python . /
COPY --from=stagex/core-readline . /
COPY --from=stagex/core-icu . /
COPY --from=stagex/core-tcl8 . /
COPY --from=stagex/core-readline . /
COPY --from=stagex/core-libxml2 . /
ARG VERSION
ADD fetch/postgresql-${VERSION}.tar.gz .
WORKDIR /postgresql-${VERSION}
RUN --network=none <<-EOF
./configure \
LDFLAGS_EX_BE="-Wl,--export-dynamic" \
--prefix=/usr \
--mandir=/usr/share/man \
--with-libxml \
--with-openssl \
--disable-rpath \
--with-llvm \
--with-perl \
--with-python \
--with-icu \
--with-tcl \
--with-readline
make src config contrib all
make DESTDIR=/rootfs install
make -C contrib DESTDIR=/rootfs install
install -Dm 644 COPYRIGHT /rootfs/usr/share/licenses/postgresql
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!