pdns-admin: catching up with upstream changes

Build process requires npm now, `python3-lxml` requested is too old to
build on newer python and gcc, so we install pre-compiled system
version.
This commit is contained in:
Peter Schiffer 2023-02-24 00:40:12 +01:00
parent ecb0ec7685
commit dc97d58e2d
No known key found for this signature in database
GPG key ID: F2A18AC34A008397

View file

@ -2,9 +2,12 @@ FROM fedora:37
RUN curl -sSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \
&& dnf -y --setopt=install_weak_deps=False install \
npm \
python3-ldap \
python3-lxml \
python3-mysql \
python3-pip \
python3-saml \
python3-setuptools \
python3-xmlsec \
uwsgi \
@ -16,6 +19,8 @@ RUN mkdir -p /opt/powerdns-admin \
| tar -xzC /opt/powerdns-admin --strip 1 \
&& sed -i '/python-ldap/d' /opt/powerdns-admin/requirements.txt \
&& sed -i '/mysqlclient/d' /opt/powerdns-admin/requirements.txt \
&& sed -i '/lxml/d' /opt/powerdns-admin/requirements.txt \
&& sed -i '/python3-saml/d' /opt/powerdns-admin/requirements.txt \
&& chown -R root: /opt/powerdns-admin
WORKDIR /opt/powerdns-admin