diff --git a/Dockerfile b/Dockerfile index 9c1f697..71f4dfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG CHECKSUM ARG PYTHON_VERSION=3.11 RUN apk add --no-cache build-base libffi-dev perl zlib-dev diffutils libstdc++ gcompat \ - bash wget py3-cffi py3-zope-interface + bash wget py3-cffi py3-zope-interface py3-cryptography RUN wget -O duoauthproxy.tgz https://dl.duosecurity.com/duoauthproxy-${VERSION}-src.tgz RUN echo "${CHECKSUM} duoauthproxy.tgz" | sha256sum -c RUN tar xzf duoauthproxy.tgz @@ -15,6 +15,7 @@ RUN mkdir -p duoauthproxy-build/usr/local/lib/python${PYTHON_VERSION}/ RUN cp -R /usr/lib/python3.11/site-packages duoauthproxy-build/usr/local/lib/python${PYTHON_VERSION}/ RUN sed -i '/$(CFFI) \\/d' Makefile RUN sed -i '/$(ZOPE_INTERFACE) \\/d' Makefile +RUN sed -i '/$(CRYPTOGRAPHY) \\/d' Makefile RUN make RUN LD_PRELOAD=libgcompat.so.0 duoauthproxy-build/install --install-dir /app --service-user nobody --log-group nobody --create-init-script no --enable-selinux=no RUN rm -rf /app/usr/local/lib/python${PYTHON_VERSION}/test