-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
23 lines (19 loc) · 932 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
FROM --platform=$BUILDPLATFORM golang:1.21-alpine3.19 AS build
COPY . /src
WORKDIR /src
RUN go mod vendor
ARG TARGETOS TARGETARCH
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build .
FROM scratch as runner
COPY --from=build /src/namespace-provisioner /usr/bin/namespace-provisioner
LABEL vendor="Observatorium" \
name="observatorium/namespace-provisioner" \
description="Create temporary namespaces in a Kubernetes cluster" \
io.k8s.display-name="observatorium/namespace-provisioner" \
io.k8s.description="Create temporary namespaces in a Kubernetes cluster" \
maintainer="Observatorium <[email protected]>" \
org.label-schema.description="Create temporary namespaces in a Kubernetes cluster" \
org.label-schema.name="observatorium/namespace-provisioner" \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="Observatorium"
ENTRYPOINT ["/usr/bin/namespace-provisioner"]