forked from gardener/gardener-extension-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 735 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.18.3 AS builder
WORKDIR /go/src/github.com/gardener/gardener-extension-provider-aws
COPY . .
RUN make install
############# base
FROM gcr.io/distroless/static-debian11:nonroot AS base
############# gardener-extension-provider-aws
FROM base AS gardener-extension-provider-aws
WORKDIR /
COPY charts /charts
COPY --from=builder /go/bin/gardener-extension-provider-aws /gardener-extension-provider-aws
ENTRYPOINT ["/gardener-extension-provider-aws"]
############# gardener-extension-admission-aws
FROM base as gardener-extension-admission-aws
WORKDIR /
COPY --from=builder /go/bin/gardener-extension-admission-aws /gardener-extension-admission-aws
ENTRYPOINT ["/gardener-extension-admission-aws"]