Skip to content

Commit

Permalink
removed arch dependency for multiarc support (kserve#2476)
Browse files Browse the repository at this point in the history
* removed arch dependaency for multiarc support from agent

Signed-off-by: Pranav Pandit <[email protected]>

* removed arch depedency for multiarc support from controller

Signed-off-by: Pranav Pandit <[email protected]>

Signed-off-by: Pranav Pandit <[email protected]>
  • Loading branch information
pranavpandit1 authored Nov 13, 2022
1 parent 70a1c2c commit 77f04a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ RUN go mod download

COPY cmd/ cmd/
COPY pkg/ pkg/

# Build
RUN if [ "$(uname -m)" = "ppc64le" ]; then \
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -a -o manager ./cmd/manager; \
elif [ "$(uname -m)" = "aarch64" ]; then \
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -o manager ./cmd/manager; \
else \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager ./cmd/manager; \
fi
RUN CGO_ENABLED=0 GOOS=linux go build -a -o manager ./cmd/manager

# Copy the controller-manager into a thin image
FROM gcr.io/distroless/static:nonroot
Expand Down
2 changes: 1 addition & 1 deletion agent.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY pkg/ pkg/
COPY cmd/ cmd/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o agent ./cmd/agent
RUN CGO_ENABLED=0 GOOS=linux go build -a -o agent ./cmd/agent

# Copy the inference-agent into a thin image
FROM gcr.io/distroless/static:latest
Expand Down

0 comments on commit 77f04a7

Please sign in to comment.