
images.gnutls.Dockerfile-3_7_0-x Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tls-docker-library Show documentation
Show all versions of tls-docker-library Show documentation
Bill of Materials POM for the entire protocol attacker ecosystem used to keep dependencies in sync.
The newest version!
FROM alpine-build:3.12 as gnutls-libnettle
RUN git clone --depth=1 --branch nettle_3.6_release_20200429 https://git.lysator.liu.se/nettle/nettle.git
WORKDIR /src/nettle
RUN ./.bootstrap && ./configure --disable-documentation --prefix=/build/
RUN make && make install
FROM alpine-build:3.12 as gnutls-gnutls
ARG VERSION
ENV PKG_CONFIG_PATH=/build/lib/pkgconfig/
# after 3.6.12 the tag format changed
RUN git clone --depth=1 --branch gnutls_3_7_${VERSION} https://github.com/gnutls/gnutls || git clone --depth=1 --branch 3.7.${VERSION} https://github.com/gnutls/gnutls
RUN apk add gtk-doc
RUN apk add guile
RUN apk add guile-dev
RUN apk add libtasn1-progs
RUN wget https://ftp.gnu.org/gnu/autogen/rel5.18.12/autogen-5.18.12.tar.gz
RUN tar -xzf autogen-5.18.12.tar.gz
WORKDIR /src/autogen-5.18.12/
RUN ./configure
RUN make && make install
WORKDIR /src/gnutls/
RUN git submodule update --init --no-fetch
COPY --from=gnutls-libnettle /build/ /build/
RUN make autoreconf || ./bootstrap
RUN ./configure --with-included-libtasn1 --with-included-unistring --disable-maintainer-mode --disable-doc --disable-full-test-suite --disable-cxx --disable-padlock --without-p11-kit --without-tpm --prefix=/build/
RUN make && make install
FROM entrypoint as gnutls-base
COPY --from=gnutls-gnutls /lib/ld-musl-x86_64.so.* \
/usr/lib/libgmp.so.* \
/usr/lib/libintl.so.* \
/build/lib/libgnutls.so.* \
/build/lib/libnettle.so.* \
/build/lib/libhogweed.so.* \
/usr/local/lib/libopts.so.* \
/lib/libz.so.* /lib/
FROM gnutls-base as gnutls-server
ARG VERSION
LABEL "tls_implementation"="gnutls"
LABEL "tls_implementation_version"="3.7.${VERSION}"
LABEL "tls_implementation_connectionRole"="server"
COPY --from=gnutls-gnutls /build/bin/gnutls-serv /bin/
ENTRYPOINT ["server-entrypoint", "gnutls-serv"]
FROM gnutls-base as gnutls-client
ARG VERSION
LABEL "tls_implementation"="gnutls"
LABEL "tls_implementation_version"="3.7.${VERSION}"
LABEL "tls_implementation_connectionRole"="client"
COPY --from=gnutls-gnutls /build/bin/gnutls-cli /bin/
ENTRYPOINT ["client-entrypoint", "gnutls-cli"]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy