Switch base image for pdns-admin

from Fedora to Rocky linux 9 UBI for more stability. Bleeding edge
Python is not good for pdns-admin.
This commit is contained in:
Peter Schiffer 2023-12-20 15:10:14 +01:00
parent e37b326748
commit 08ed6b10d1
No known key found for this signature in database
GPG key ID: F2A18AC34A008397

View file

@ -1,20 +1,21 @@
FROM fedora:38
FROM rockylinux/rockylinux:9-ubi
RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
&& echo 'tsflags=nodocs' >> /etc/dnf/dnf.conf \
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
&& curl -fsSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \
&& dnf module enable nodejs:20 \
&& dnf install epel-release \
&& dnf --refresh upgrade \
&& dnf install \
nodejs-npm \
npm \
python3-cffi \
python3-ldap \
python3-lxml \
python3-mysql \
python3-mysqlclient \
python3-pip \
python3-pyyaml \
python3-saml \
python3-setuptools \
python3-wheel \
python3-xmlsec \
uwsgi \
yarn \
@ -41,8 +42,7 @@ RUN mkdir -p /opt/powerdns-admin \
WORKDIR /opt/powerdns-admin
RUN pip3 install --no-cache-dir python-dotenv \
&& pip3 install -r requirements.txt --no-cache-dir
RUN pip3 install -r requirements.txt --no-cache-dir
ENV FLASK_APP=/opt/powerdns-admin/powerdnsadmin/__init__.py