forked from gardener/gardener-extension-provider-alicloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 790 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
############# builder
FROM golang:1.17.5 AS builder
WORKDIR /go/src/github.com/gardener/gardener-extension-provider-alicloud
COPY . .
RUN make install
############# base
FROM gcr.io/distroless/static-debian11:nonroot AS base
############# gardener-extension-provider-alicloud
FROM base AS gardener-extension-provider-alicloud
WORKDIR /
COPY charts /charts
COPY --from=builder /go/bin/gardener-extension-provider-alicloud /gardener-extension-provider-alicloud
ENTRYPOINT ["/gardener-extension-provider-alicloud"]
############# gardener-extension-admission-alicloud
FROM base as gardener-extension-admission-alicloud
WORKDIR /
COPY --from=builder /go/bin/gardener-extension-admission-alicloud /gardener-extension-admission-alicloud
ENTRYPOINT ["/gardener-extension-admission-alicloud"]