forked from gardener-attic/gardener-extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (23 loc) · 1.14 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 #############
FROM golang:1.11.5 AS builder
ARG VERIFY=true
WORKDIR /go/src/github.com/gardener/gardener-extensions
COPY . .
RUN ./hack/install-requirements.sh
RUN make VERIFY=$VERIFY all
############# base #############
FROM alpine:3.8 AS base
RUN apk add --update bash curl
WORKDIR /
############# gardener-extension-os-coreos #############
FROM base AS gardener-extension-os-coreos
COPY --from=builder /go/bin/gardener-extension-os-coreos /gardener-extension-os-coreos
ENTRYPOINT ["/gardener-extension-os-coreos"]
############# gardener-extension-os-coreos-alibaba #############
FROM base AS gardener-extension-os-coreos-alibaba
COPY --from=builder /go/bin/gardener-extension-os-coreos-alibaba /gardener-extension-os-coreos-alibaba
ENTRYPOINT ["/gardener-extension-os-coreos-alibaba"]
############# gardener-extension-hyper #############
FROM base AS gardener-extension-hyper
COPY --from=builder /go/bin/gardener-extension-hyper /gardener-extension-hyper
ENTRYPOINT ["/gardener-extension-hyper"]