1
- FROM registry.access.redhat.com/ubi9/ubi:latest AS production
1
+ FROM registry.access.redhat.com/ubi9/ubi-minimal :latest AS production
2
2
3
3
ARG IMAGE_TAGS=image-tags-not-defined
4
4
ARG GIT_COMMIT=git-commit-not-defined
@@ -14,8 +14,8 @@ ENV BUILD_PATH=/var/www/wisdom/public/static/console
14
14
ENV UWSGI_PROCESSES=10
15
15
16
16
# 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 \
19
19
git \
20
20
python3.11-devel \
21
21
gcc \
@@ -45,7 +45,7 @@ ENV PATH="/var/www/venv/bin:${PATH}"
45
45
46
46
# Address GHSA-79v4-65xg-pq4g and the fact jwcrypto prevent us from pulling cryptography 44.0.1
47
47
# 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
49
49
RUN /var/www/venv/bin/python3.11 -m pip --no-cache-dir install --no-binary=all cryptography==43.0.1
50
50
51
51
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
124
124
125
125
FROM production AS devel
126
126
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
131
131
COPY tools/scripts/auto-reload.sh /usr/bin/auto-reload.sh
132
132
RUN mkdir /etc/supervisor/supervisord.d/
133
133
COPY tools/configs/supervisord.d/auto-reload.conf /etc/supervisor/supervisord.d/auto-reload.conf
0 commit comments