File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,16 @@ RUN CGO_ENABLED=0 GOOS=linux GOFLAGS=-mod=mod go build -a -o agent ./cmd/agent
17
17
# Copy the inference-agent into a thin image
18
18
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
19
19
20
- RUN microdnf install -y --disablerepo=* --enablerepo=ubi-8-baseos-rpms shadow-utils && \
21
- microdnf clean all && \
22
- useradd kserve -m -u 1000
23
- RUN microdnf remove -y shadow-utils
20
+ RUN mkdir -p /home/kserve && \
21
+ touch /etc/passwd /etc/group /etc/shadow && \
22
+ echo 'kserve:x:1000:1000::/home/kserve:/bin/bash' >> /etc/passwd && \
23
+ echo 'kserve:*:18573:0:99999:7:::' >> /etc/shadow && \
24
+ echo 'kserve:x:1000:' >> /etc/group && \
25
+ chown -R 1000:1000 /home/kserve
26
+
24
27
COPY third_party/ third_party/
25
28
WORKDIR /ko-app
26
29
COPY --from=builder /go/src/github.com/kserve/kserve/agent /ko-app/
27
30
USER 1000:1000
28
31
29
- ENTRYPOINT ["/ko-app/agent" ]
32
+ ENTRYPOINT ["/ko-app/agent" ]
You can’t perform that action at this time.
0 commit comments