forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (55 loc) · 1.93 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# builder
FROM golang:1.22.6 AS builder
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=$GOPROXY
WORKDIR /go/src/github.com/gardener/gardener
COPY . .
ARG EFFECTIVE_VERSION
RUN make install EFFECTIVE_VERSION=$EFFECTIVE_VERSION
# distroless-static
FROM gcr.io/distroless/static-debian12:nonroot as distroless-static
# apiserver
FROM distroless-static AS apiserver
COPY --from=builder /go/bin/gardener-apiserver /gardener-apiserver
WORKDIR /
ENTRYPOINT ["/gardener-apiserver"]
# controller-manager
FROM distroless-static AS controller-manager
COPY --from=builder /go/bin/gardener-controller-manager /gardener-controller-manager
WORKDIR /
ENTRYPOINT ["/gardener-controller-manager"]
# scheduler
FROM distroless-static AS scheduler
COPY --from=builder /go/bin/gardener-scheduler /gardener-scheduler
WORKDIR /
ENTRYPOINT ["/gardener-scheduler"]
# gardenlet
FROM distroless-static AS gardenlet
COPY --from=builder /go/bin/gardenlet /gardenlet
WORKDIR /
ENTRYPOINT ["/gardenlet"]
# admission-controller
FROM distroless-static AS admission-controller
COPY --from=builder /go/bin/gardener-admission-controller /gardener-admission-controller
WORKDIR /
ENTRYPOINT ["/gardener-admission-controller"]
# resource-manager
FROM distroless-static AS resource-manager
COPY --from=builder /go/bin/gardener-resource-manager /gardener-resource-manager
WORKDIR /
ENTRYPOINT ["/gardener-resource-manager"]
# node-agent
FROM distroless-static AS node-agent
COPY --from=builder /go/bin/gardener-node-agent /gardener-node-agent
WORKDIR /
ENTRYPOINT ["/gardener-node-agent"]
# operator
FROM distroless-static AS operator
COPY --from=builder /go/bin/gardener-operator /gardener-operator
WORKDIR /
ENTRYPOINT ["/gardener-operator"]
# gardener-extension-provider-local
FROM distroless-static AS gardener-extension-provider-local
COPY --from=builder /go/bin/gardener-extension-provider-local /gardener-extension-provider-local
WORKDIR /
ENTRYPOINT ["/gardener-extension-provider-local"]