Skip to content

Commit

Permalink
Refine Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
timuthy committed Feb 5, 2021
1 parent 67d5950 commit 0077c89
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install \
-mod=vendor \
./cmd/...

############# base #############
FROM alpine:3.11.2 AS base

RUN apk add --update bash curl

WORKDIR /

############# cloud-provider-gcp #############
FROM base AS cloud-provider-gcp
FROM eu.gcr.io/gardener-project/3rd/alpine:3.12.3 AS cloud-provider-gcp

COPY --from=builder /go/bin/gcp-cloud-controller-manager /gcp-cloud-controller-manager

WORKDIR /

ENTRYPOINT ["/gcp-cloud-controller-manager"]

0 comments on commit 0077c89

Please sign in to comment.