forked from gardener/gardener-extension-registry-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (16 loc) · 734 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
############# builder
FROM golang:1.21.3 AS builder
WORKDIR /go/src/github.com/gardener/gardener-extension-registry-cache
COPY . .
RUN make install
############# base
FROM gcr.io/distroless/static-debian11:nonroot AS base
WORKDIR /
############# gardener-extension-registry-cache
FROM base AS registry-cache
COPY --from=builder /go/bin/gardener-extension-registry-cache /gardener-extension-registry-cache
ENTRYPOINT ["/gardener-extension-registry-cache"]
############# gardener-extension-registry-cache-admission
FROM base AS registry-cache-admission
COPY --from=builder /go/bin/gardener-extension-registry-cache-admission /gardener-extension-registry-cache-admission
ENTRYPOINT ["/gardener-extension-registry-cache-admission"]