@@ -45,18 +45,6 @@ RUN ./configure \
4545RUN make
4646RUN make install
4747
48- FROM build-deps as build-nassl
49-
50- COPY vendor/nassl /src/vendor/nassl
51- WORKDIR /src/vendor/nassl
52-
53- ADD vendor/zlib-1.2.13.tar.gz ./
54- COPY vendor/openssl-1.0.2e ./openssl-1.0.2e
55- COPY vendor/openssl-master ./openssl-master
56-
57- RUN python3 build_from_scratch.py
58- RUN python3 setup.py install
59-
6048# intermediate stage with apt and python dependencies
6149FROM build-deps as build-app-deps
6250
@@ -151,9 +139,6 @@ RUN apt update && \
151139COPY --from=build-unbound /opt/unbound /opt/unbound
152140COPY --from=build-unbound /usr/lib/python3/dist-packages/*unbound* /usr/lib/python3/dist-packages/
153141
154- # copy nassl Python module into image
155- COPY --from=build-nassl /usr/local/lib/python${PYTHON_VERSION}/dist-packages/nassl-*.egg /usr/local/lib/python${PYTHON_VERSION}/dist-packages/
156-
157142# copy application dependencies into image
158143COPY --from=build-app-deps /usr/local/lib/python${PYTHON_VERSION}/dist-packages/ /usr/local/lib/python${PYTHON_VERSION}/dist-packages/
159144COPY --from=build-app-deps /usr/local/bin/* /usr/local/bin/
@@ -163,7 +148,6 @@ COPY --from=build-app-deps /usr/local/bin/* /usr/local/bin/
163148# OS updates, verify we run the desired Python version.
164149RUN python3 --version | grep "$PYTHON_VERSION."
165150RUN /opt/unbound/sbin/unbound -V
166- RUN python3 -c 'import nassl; print(nassl.__version__)'
167151
168152COPY docker/worker/entrypoint.sh /entrypoint-worker.sh
169153
0 commit comments