From 8328510acfe92a955dd502d2655653d32d8f7f93 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Tue, 28 May 2024 10:16:01 +0200 Subject: [PATCH] container: use distro packages Use the distribution packages in the container instead of downloading them from pypi. Signed-off-by: Simon de Vlieger --- Containerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index f1dbd28d..88a7364f 100644 --- a/Containerfile +++ b/Containerfile @@ -2,15 +2,16 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal AS build RUN \ microdnf install -y \ - python3-pip && \ - microdnf clean all + python3-pip \ + python3-pyyaml \ + && microdnf clean all WORKDIR /src COPY pyproject.toml /src/ COPY src /src/src -RUN pip install . +RUN pip install --no-dependencies . RUN rm -rf src/* ENTRYPOINT ["otk"]