2023-03-03 17:40:12 +05:30
|
|
|
ARG OS_IMAGE="alpine:latest"
|
|
|
|
|
|
|
|
FROM "${OS_IMAGE}" AS build
|
|
|
|
|
|
|
|
RUN apk add autoconf automake build-base byacc expect gettext-dev git \
|
|
|
|
libbsd-dev libeconf-dev libtool libxslt pkgconf
|
|
|
|
|
|
|
|
COPY ./ /usr/local/src/shadow/
|
|
|
|
WORKDIR /usr/local/src/shadow/
|
|
|
|
|
|
|
|
RUN ./autogen.sh --without-selinux --disable-man --disable-nls --with-yescrypt
|
2023-04-06 01:20:28 +05:30
|
|
|
RUN make -kj4 || true
|
|
|
|
RUN make
|
2023-03-03 17:40:12 +05:30
|
|
|
RUN make install
|
|
|
|
|
|
|
|
FROM scratch AS export
|
|
|
|
COPY --from=build /usr/local/src/shadow/config.log \
|
|
|
|
/usr/local/src/shadow/config.h ./
|