Skip to content

Commit d88506f

Browse files
committed
Containerfile: use ubi-minimal
Use `ubi9/ubi-minimal` to be closed to the downstream set-up.
1 parent ec005be commit d88506f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

wisdom-service.Containerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/ubi:latest AS production
1+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS production
22

33
ARG IMAGE_TAGS=image-tags-not-defined
44
ARG GIT_COMMIT=git-commit-not-defined
@@ -14,8 +14,8 @@ ENV BUILD_PATH=/var/www/wisdom/public/static/console
1414
ENV UWSGI_PROCESSES=10
1515

1616
# Install dependencies
17-
RUN dnf module enable nodejs:18 nginx:1.22 -y && \
18-
dnf install -y \
17+
RUN microdnf module enable nodejs:22 nginx:1.22 -y && \
18+
microdnf install --setopt=install_weak_deps=0 --nodocs -y \
1919
git \
2020
python3.11-devel \
2121
gcc \
@@ -45,7 +45,7 @@ ENV PATH="/var/www/venv/bin:${PATH}"
4545

4646
# Address GHSA-79v4-65xg-pq4g and the fact jwcrypto prevent us from pulling cryptography 44.0.1
4747
# Please remove once jwcrypto and cryptography can be both upgraded
48-
RUN dnf install -y openssl-devel
48+
RUN microdnf install --setopt=install_weak_deps=0 --nodocs -y openssl-devel
4949
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install --no-binary=all cryptography==43.0.1
5050

5151
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install -r/var/www/ansible-ai-connect-service/requirements.txt
@@ -124,10 +124,10 @@ CMD /usr/bin/launch-wisdom.sh
124124

125125
FROM production AS devel
126126
USER 0
127-
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
128-
dnf install -y inotify-tools && \
129-
dnf remove -y epel-release && \
130-
dnf clean all
127+
RUN microdnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
128+
microdnf install -y inotify-tools && \
129+
microdnf remove -y epel-release && \
130+
microdnf clean all
131131
COPY tools/scripts/auto-reload.sh /usr/bin/auto-reload.sh
132132
RUN mkdir /etc/supervisor/supervisord.d/
133133
COPY tools/configs/supervisord.d/auto-reload.conf /etc/supervisor/supervisord.d/auto-reload.conf

0 commit comments

Comments
 (0)