@@ -52,17 +52,6 @@ RUN ./configure \
5252RUN make
5353RUN make install
5454
55- FROM build-deps AS build-nassl
56-
57- COPY vendor/nassl6 /src/vendor/nassl
58- WORKDIR /src/vendor/nassl
59-
60- RUN ln -s /usr/bin/python3 /usr/bin/python
61-
62- RUN pip3 install -r requirements-dev.txt
63- RUN invoke build.all
64- RUN python3 setup.py install
65-
6655# intermediate stage with apt and python dependencies
6756FROM build-deps AS build-app-deps
6857
@@ -71,10 +60,6 @@ COPY requirements.txt /src/
7160WORKDIR /src
7261
7362RUN pip3 install --system -r requirements.txt
74- # sslyze is installed from our own fork, and installed
75- # without deps to avoid it trying to install nassl, when
76- # we have our custom nassl
77- RUN pip3 install --no-deps https://github.com/mxsasha/sslyze/archive/refs/tags/6.0.0+internetnl6.tar.gz
7863
7964# stage with app dependencies and lint/test depencencies
8065FROM build-app-deps AS linttest-deps
@@ -161,9 +146,6 @@ RUN apt update && \
161146COPY --from=build-unbound /opt/unbound /opt/unbound
162147COPY --from=build-unbound /usr/lib/python3/dist-packages/*unbound* /usr/lib/python3/dist-packages/
163148
164- # copy nassl Python module into image
165- COPY --from=build-nassl /usr/local/lib/python${PYTHON_VERSION}/dist-packages/nassl-*.egg /usr/local/lib/python${PYTHON_VERSION}/dist-packages/
166-
167149# copy application dependencies into image
168150COPY --from=build-app-deps /usr/local/lib/python${PYTHON_VERSION}/dist-packages/ /usr/local/lib/python${PYTHON_VERSION}/dist-packages/
169151COPY --from=build-app-deps /usr/local/bin/* /usr/local/bin/
0 commit comments