All Downloads are FREE. Search and download functionalities are using the official Maven repository.

images.pyopenssl.Dockerfile Maven / Gradle / Ivy

Go to download

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 py-openssl
ARG VERSION
RUN apk add --no-cache py-setuptools libffi-dev python2-dev openssl-dev
RUN git clone --depth=1 --branch=${VERSION} https://github.com/pyca/pyopenssl
WORKDIR pyopenssl
RUN python setup.py build && python setup.py install
WORKDIR examples
RUN python mk_simple_certs.py

FROM entrypoint as entrypoint

FROM python:2.7-alpine
ARG VERSION
LABEL "tls_implementation"="pyopenssl"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="server"
COPY --from=py-openssl /src/pyopenssl/examples/* /src/
COPY --from=py-openssl /src/pyopenssl/examples/simple/* /src/simple/
COPY --from=py-openssl /usr/lib/python2.7/site-packages/*.egg /usr/local/lib/python2.7/site-packages/
COPY --from=py-openssl /usr/lib/python2.7/site-packages/easy-install.pth /usr/local/lib/python2.7/site-packages/
COPY --from=py-openssl /usr/lib/libffi.so.6 /usr/lib/libssl.so.1.0.0 /usr/lib/libcrypto.so.1.0.0 /usr/local/lib/
COPY --from=entrypoint /bin/server-entrypoint /bin/
COPY server.py /src/simple/
WORKDIR src/simple
ENTRYPOINT ["server-entrypoint", "python","server.py"]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy