-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
96 lines (70 loc) · 2.26 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
#### BASE ####
FROM gcr.io/distroless/static-debian11:nonroot AS base
#RUN apt install -y --no-cache ca-certificates
#### Landscaper Controller ####
FROM base AS landscaper-controller
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/landscaper-controller-$TARGETOS.$TARGETARCH /landscaper-controller
USER 65532:65532
ENTRYPOINT ["/landscaper-controller"]
#### Landsacper webhooks server ####
FROM base AS landscaper-webhooks-server
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/landscaper-webhooks-server-$TARGETOS.$TARGETARCH /landscaper-webhooks-server
USER 65532:65532
ENTRYPOINT ["/landscaper-webhooks-server"]
#### Container Deployer Controller ####
FROM base AS container-deployer-controller
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/container-deployer-controller-$TARGETOS.$TARGETARCH /container-deployer-controller
USER 65532:65532
ENTRYPOINT ["/container-deployer-controller"]
#### Container Deployer Init ####
FROM base AS container-deployer-init
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/container-deployer-init-$TARGETOS.$TARGETARCH /container-deployer-init
USER 65532:65532
ENTRYPOINT ["/container-deployer-init"]
#### Container Deployer wait ####
FROM base AS container-deployer-wait
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/container-deployer-wait-$TARGETOS.$TARGETARCH /container-deployer-wait
USER 65532:65532
ENTRYPOINT ["/container-deployer-wait"]
#### Helm Deployer Controller ####
FROM base AS helm-deployer-controller
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/helm-deployer-controller-$TARGETOS.$TARGETARCH /helm-deployer-controller
USER 65532:65532
ENTRYPOINT ["/helm-deployer-controller"]
#### Manifest Deployer Controller ####
FROM base AS manifest-deployer-controller
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/manifest-deployer-controller-$TARGETOS.$TARGETARCH /manifest-deployer-controller
USER 65532:65532
ENTRYPOINT ["/manifest-deployer-controller"]
#### Mock Deployer Controller ####
FROM base AS mock-deployer-controller
ARG TARGETOS
ARG TARGETARCH
WORKDIR /
COPY bin/mock-deployer-controller-$TARGETOS.$TARGETARCH /mock-deployer-controller
USER 65532:65532
ENTRYPOINT ["/mock-deployer-controller"]