-
Notifications
You must be signed in to change notification settings - Fork 79
/
fast.Dockerfile
32 lines (27 loc) · 1.16 KB
/
fast.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
# TODO: Eventually replace main Dockerfile
FROM golang:1.23 as certs-source
ARG GOTOOLCHAIN=auto
# Using rolling tag to stay on latest UBI 9
FROM registry.access.redhat.com/ubi9/ubi:latest as ubi-certs
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
ARG TARGETOS
ARG TARGETARCH
ENV TARGET_ARCH=${TARGETARCH}
ENV TARGET_OS=${TARGETOS}
LABEL name="MongoDB Atlas Operator" \
maintainer="support@mongodb.com" \
vendor="MongoDB" \
release="1" \
summary="MongoDB Atlas Operator Image" \
description="MongoDB Atlas Operator is a Kubernetes Operator allowing to manage MongoDB Atlas resources not leaving Kubernetes cluster" \
io.k8s.display-name="MongoDB Atlas Operator" \
io.k8s.description="MongoDB Atlas Operator is a Kubernetes Operator allowing to manage MongoDB Atlas resources not leaving Kubernetes cluster" \
io.openshift.tags="mongodb,atlas" \
io.openshift.maintainer.product="MongoDB" \
License="Apache-2.0"
WORKDIR /
COPY bin/${TARGET_OS}/${TARGET_ARCH}/manager .
COPY hack/licenses licenses
COPY --from=ubi-certs /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
USER 1001:0
ENTRYPOINT ["/manager"]