Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-readline . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/user-unixodbc . /
ADD fetch/freetds-${VERSION}.tar.bz2 .
WORKDIR /freetds-${VERSION}
RUN --network=none <<-EOF
set -ex
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-msdblib \
--with-openssl=/usr \
--enable-odbc \
--with-unixodbc=/usr
make -j "$(nproc)"
make DESTDIR="/rootfs" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /