Skip to content

Commit

Permalink
dockerfile: use ubi9 as base
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <[email protected]>
  • Loading branch information
dtrifiro committed Jan 12, 2024
1 parent d09e83c commit 72bebcd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as base
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as base

RUN microdnf update -y && \
microdnf install -y \
git python39 && \
pip3 install --upgrade --no-cache-dir pip wheel && \
git python-pip && \
pip install --upgrade --no-cache-dir pip wheel && \
microdnf clean all

FROM base as builder
WORKDIR /build

RUN pip3 install --no-cache tox
RUN pip install --no-cache tox
COPY README.md .
COPY pyproject.toml .
COPY tox.ini .
Expand All @@ -20,7 +20,7 @@ RUN --mount=source=.git,target=.git,type=bind tox -e build

FROM base as deploy

RUN python3 -m venv /opt/caikit/
RUN python -m venv /opt/caikit/

ENV VIRTUAL_ENV=/opt/caikit
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
Expand Down

0 comments on commit 72bebcd

Please sign in to comment.