forked from kubernetes-sigs/lws
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.ocp
46 lines (39 loc) · 2.09 KB
/
Dockerfile.ocp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG BUILDER_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23
ARG BASE_IMAGE=registry.redhat.io/rhel9-4-els/rhel-minimal:9.4
# Build the manager binary
FROM ${BUILDER_IMAGE} AS builder
ARG TARGETOS
ARG TARGETARCH
ARG TARGETPLATFORM
WORKDIR /workspace
COPY . .
ENV GOEXPERIMENT=strictfipsruntime
ENV GOFLAGS="-tags=strictfipsruntime -mod=vendor -a"
RUN make -f Makefile-ocp.mk build-ocp GO_BUILD_ENV='CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}'
FROM --platform=$TARGETPLATFORM ${BASE_IMAGE}
WORKDIR /
COPY --from=builder /workspace/bin/manager .
RUN mkdir /licenses
COPY --from=builder /workspace/LICENSE /licenses/.
USER 65532:65532
LABEL com.redhat.component="Leader Worker Set"
LABEL name="lws"
LABEL release="0.5.1"
LABEL version="0.5.1"
LABEL url="https://github.com/openshift/kubernetes-sigs-lws"
LABEL vendor="Red Hat, Inc."
LABEL description="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL io.k8s.description="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL summary="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL io.k8s.display-name="Leader Worker Set"
LABEL io.openshift.tags="openshift,operator,leaderworkerset,lws"
ENTRYPOINT ["/manager"]