fix: Replace dnf with microdnf for package management consistency 🐛
Some checks failed
CI / build (push) Successful in 10s
CI / release (release) Failing after 46s

This commit is contained in:
2025-12-04 15:02:37 +13:00
parent acfae94e00
commit 9dec26252a

View File

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