Skip to content

Commit

Permalink
container: use distro packages
Browse files Browse the repository at this point in the history
Use the distribution packages in the container instead of downloading
them from pypi.

Signed-off-by: Simon de Vlieger <[email protected]>
  • Loading branch information
supakeen authored and achilleas-k committed May 30, 2024
1 parent 4372d98 commit 8328510
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 8328510

Please sign in to comment.