forked from gardener-attic/gardener-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (26 loc) · 1.34 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
############# builder-base #############
FROM golang:1.12.4 AS builder-base
COPY ./hack/install-requirements.sh /install-requirements.sh
COPY ./tools /tools
RUN /install-requirements.sh
############# builder #############
FROM builder-base AS builder
ARG VERIFY=true
WORKDIR /go/src/github.com/gardener/gardener-extensions
COPY . .
RUN make VERIFY=$VERIFY all
############# base #############
FROM alpine:3.8 AS base
RUN apk add --update bash curl
WORKDIR /
############# gardener-extension-hyper #############
FROM base AS gardener-extension-hyper
COPY controllers/provider-aws/charts /controllers/provider-aws/charts
COPY controllers/provider-azure/charts /controllers/provider-azure/charts
COPY controllers/provider-gcp/charts /controllers/provider-gcp/charts
COPY controllers/provider-openstack/charts /controllers/provider-openstack/charts
COPY controllers/provider-alicloud/charts /controllers/provider-alicloud/charts
COPY controllers/provider-packet/charts /controllers/provider-packet/charts
COPY controllers/extension-certificate-service/charts /controllers/extension-certificate-service/charts
COPY --from=builder /go/bin/gardener-extension-hyper /gardener-extension-hyper
ENTRYPOINT ["/gardener-extension-hyper"]