
images.wolfssl_py.Dockerfile 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 wolfssl-py
ARG VERSION
RUN apk add --no-cache py-setuptools python-dev py-pip py-cffi python2-dev
RUN git clone --depth=1 --branch=${VERSION} https://github.com/wolfssl/wolfssl-py
WORKDIR wolfssl-py
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install pip==9.0.3
RUN python setup.py build && python setup.py install
FROM entrypoint as entrypoint
FROM python:2.7-alpine
ARG VERSION
LABEL "tls_implementation"="wolfssl_py"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="server"
COPY --from=wolfssl-py /src/wolfssl-py/certs/* /src/
COPY --from=wolfssl-py /src/wolfssl-py/examples/server.py /src/
COPY --from=wolfssl-py /usr/lib/python2.7/site-packages/*.egg /usr/local/lib/python2.7/site-packages/
COPY --from=wolfssl-py /usr/lib/python2.7/site-packages/_cffi_backend.so /usr/local/lib/python2.7/site-packages/
COPY --from=wolfssl-py /usr/lib/python2.7/site-packages/cffi/ /usr/local/lib/python2.7/site-packages/cffi/
COPY --from=wolfssl-py /usr/lib/libffi* /usr/local/lib/
COPY --from=entrypoint /bin/server-entrypoint /usr/local/bin/
WORKDIR /src
ENTRYPOINT ["server-entrypoint", "python","server.py","-c","server-cert.pem","-k","server-key.pem","-p","4433","-A","ca-digicert-ev.pem","-v","3","-b"]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy