-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
43 lines (26 loc) · 1.17 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
# SPDX-FileCopyrightText: 2021 "SAP SE or an SAP affiliate company and Gardener contributors"
#
# SPDX-License-Identifier: Apache-2.0
#### BUILDER ####
FROM golang:1.20.6 AS builder
WORKDIR /go/src/github.com/gardener/landscaper-service
COPY . .
ARG EFFECTIVE_VERSION
RUN make install EFFECTIVE_VERSION=$EFFECTIVE_VERSION
#### BASE ####
FROM gcr.io/distroless/static-debian11:nonroot AS base
#### Landscaper Service controller ####
FROM base as landscaper-service-controller
COPY --from=builder /go/bin/landscaper-service-controller /landscaper-service-controller
WORKDIR /
ENTRYPOINT ["/landscaper-service-controller"]
#### Landscaper Service webhooks server ####
FROM base as landscaper-service-webhooks-server
COPY --from=builder /go/bin/landscaper-service-webhooks-server /landscaper-service-webhooks-server
WORKDIR /
ENTRYPOINT ["/landscaper-service-webhooks-server"]
#### Landscaper Target-shoot Sidecar server ####
FROM base as landscaper-service-target-shoot-sidecar-server
COPY --from=builder /go/bin/landscaper-service-target-shoot-sidecar-server /landscaper-service-target-shoot-sidecar-server
WORKDIR /
ENTRYPOINT ["/landscaper-service-target-shoot-sidecar-server"]