-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
26 lines (19 loc) · 937 Bytes
/
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
# SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
############# builder
FROM golang:1.23.4 AS builder
WORKDIR /go/src/github.com/gardener/gardener-extension-shoot-networking-problemdetector
# Copy go mod and sum files
COPY go.mod go.sum ./
# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
RUN go mod download
COPY . .
ARG EFFECTIVE_VERSION
RUN make install EFFECTIVE_VERSION=$EFFECTIVE_VERSION
############# gardener-extension-shoot-networking-problemdetector
FROM gcr.io/distroless/static-debian11:nonroot AS gardener-extension-shoot-networking-problemdetector
WORKDIR /
COPY charts /charts
COPY --from=builder /go/bin/gardener-extension-shoot-networking-problemdetector /gardener-extension-shoot-networking-problemdetector
ENTRYPOINT ["/gardener-extension-shoot-networking-problemdetector"]