From 08ed6b10d159f84df05d61b60dcbe12c18fab9eb Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschiffe@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:10:14 +0100 Subject: [PATCH] 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. --- pdns-admin-base-ngoduykhanh/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pdns-admin-base-ngoduykhanh/Dockerfile b/pdns-admin-base-ngoduykhanh/Dockerfile index 5804db0..d20939e 100644 --- a/pdns-admin-base-ngoduykhanh/Dockerfile +++ b/pdns-admin-base-ngoduykhanh/Dockerfile @@ -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