fix: Revert to dnf from microdnf for package management consistency
All checks were successful
CI / build (push) Successful in 10s
CI / release (release) Successful in 11m9s

This commit is contained in:
2025-12-04 15:10:14 +13:00
parent 3cc0cd2955
commit 300ef37e06

View File

@@ -1,7 +1,7 @@
FROM almalinux:9-minimal FROM almalinux:9
ARG DEV_DEPENDENCIES="gcc python3-devel postgresql-devel mariadb-devel" ARG DEV_DEPENDENCIES="gcc python3-devel postgresql-devel mariadb-devel"
RUN microdnf install -y epel-release \ RUN dnf install -y epel-release \
&& crb enable \ && crb enable \
&& dnf update -y \ && dnf update -y \
&& dnf install -y which \ && dnf install -y which \
@@ -11,16 +11,16 @@ RUN microdnf install -y epel-release \
mariadb-connector-c mariadb-connector-c
# Install development dependencies required for installing packages from PyPI # Install development dependencies required for installing packages from PyPI
RUN microdnf install -y ${DEV_DEPENDENCIES} RUN dnf install -y ${DEV_DEPENDENCIES}
# Install ara from PyPI with API server extras for dependencies (django & django-rest-framework) # Install ara from PyPI with API server extras for dependencies (django & django-rest-framework)
# including database backend libraries and gunicorn # including database backend libraries and gunicorn
RUN python3 -m pip install "ara[server,mysql]" gunicorn RUN python3 -m pip install "ara[server,mysql]" gunicorn
# Remove development dependencies and clean up # Remove development dependencies and clean up
RUN microdnf remove -y ${DEV_DEPENDENCIES} \ RUN dnf remove -y ${DEV_DEPENDENCIES} \
&& microdnf autoremove -y \ && dnf autoremove -y \
&& microdnf clean all \ && dnf clean all \
&& python3 -m pip cache purge && python3 -m pip cache purge
# Set up the container to execute SQL migrations and run the API server with gunicorn # Set up the container to execute SQL migrations and run the API server with gunicorn