From fdaf8a18a2fb8a5f19f50cd54aa9226f1a1d4077 Mon Sep 17 00:00:00 2001 From: Sajeyks Date: Wed, 30 Sep 2026 14:54:38 +0300 Subject: [PATCH] Fix Docker image build Stop the libldap linker workaround from overwriting the real shared library, and add the missing django-recaptcha requirement. --- Dockerfile | 3 ++- requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4c1a9a66..4e41e75e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,8 @@ RUN apk add --update --no-cache \ ## For alpine 3.15 replace postgresql-dev with libpq-dev # FIX https://github.com/python-ldap/python-ldap/issues/432 -RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so +# (remove the symlink first, otherwise the echo overwrites the real libldap_r shared library) +RUN rm -f /usr/lib/libldap_r.so && echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so COPY requirements.txt ./ diff --git a/requirements.txt b/requirements.txt index 73cdf987..db0ab43f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -100,3 +100,4 @@ vine==1.1.4 cdist==5.0.1 git+https://github.com/ungleich/djangocms-multisite.git#egg=djangocms_multisite pyotp +django-recaptcha