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