Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump dockerfile ubi base #303

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading