Skip to content

Commit

Permalink
[docker] reduction in the number of layers (kserve#3070)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksey Karpov <86011874+alekseyolg@users.noreply.github.com>
  • Loading branch information
alekseyolg authored Aug 11, 2023
1 parent f2f0717 commit fc029ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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
WORKDIR /
COPY third_party/ third_party/
COPY --from=builder /go/src/github.com/kserve/kserve/manager .
COPY third_party/ /third_party/
COPY --from=builder /go/src/github.com/kserve/kserve/manager /
ENTRYPOINT ["/manager"]

0 comments on commit fc029ce

Please sign in to comment.