forked from gardener/gardener-extension-os-suse-chost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (14 loc) · 636 Bytes
/
Dockerfile
File metadata and controls
17 lines (14 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
############# builder
FROM golang:1.24.6 AS builder
WORKDIR /go/src/github.com/gardener/gardener-extension-os-suse-chost
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make install
############# gardener-extension-os-suse-chost
FROM gcr.io/distroless/static-debian11:nonroot AS gardener-extension-os-suse-chost
WORKDIR /
COPY --from=builder /go/bin/gardener-extension-os-suse-chost /gardener-extension-os-suse-chost
ENTRYPOINT ["/gardener-extension-os-suse-chost"]