Skip to content

Commit

Permalink
explicitly enable ubi-8 baseos repo
Browse files Browse the repository at this point in the history
  • Loading branch information
riprasad committed Aug 1, 2024
1 parent 26f2eb1 commit 928aa22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ FROM registry.access.redhat.com/ubi8/go-toolset:1.21 as builder
WORKDIR /go/src/github.com/kserve/kserve
COPY go.mod go.mod
COPY go.sum go.sum

RUN go mod download

COPY pkg/ pkg/
Expand All @@ -18,10 +17,12 @@ RUN CGO_ENABLED=0 GOOS=linux GOFLAGS=-mod=mod go build -a -o agent ./cmd/agent
# Copy the inference-agent into a thin image
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

RUN microdnf install -y shadow-utils && \
RUN microdnf install -y --disablerepo=* --enablerepo=ubi-8-baseos-rpms shadow-utils && \
microdnf clean all && \
useradd kserve -m -u 1000
RUN microdnf remove -y shadow-utils


COPY third_party/ third_party/
WORKDIR /ko-app
COPY --from=builder /go/src/github.com/kserve/kserve/agent /ko-app/
Expand Down

0 comments on commit 928aa22

Please sign in to comment.