Skip to content

Commit

Permalink
Update fast.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
filipcirtog authored Aug 13, 2024
1 parent 0ef04df commit 4cde256
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions fast.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# TODO: Eventually replace main Dockerfile
FROM golang:1.22 as certs-source

FROM scratch
FROM registry.access.redhat.com/ubi9/ubi:9.2 as ubi-certs
FROM registry.access.redhat.com/ubi9/ubi-micro:9.2

ARG TARGETOS
ARG TARGETARCH
ENV TARGET_ARCH=${TARGETARCH}
ENV TARGET_OS=${TARGETOS}

COPY mongodb-atlas-kubernetes \
/usr/bin/mongodb-atlas-kubernetes
LABEL name="MongoDB Atlas Operator" \
maintainer="[email protected]" \
vendor="MongoDB" \
Expand All @@ -20,10 +14,8 @@ LABEL name="MongoDB Atlas Operator" \
io.openshift.tags="mongodb,atlas" \
io.openshift.maintainer.product="MongoDB" \
License="Apache-2.0"

WORKDIR /
COPY bin/${TARGET_OS}/${TARGET_ARCH}/manager .
USER 1001:0
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"]
ENTRYPOINT ["/usr/bin/mongodb-atlas-kubernetes"]

0 comments on commit 4cde256

Please sign in to comment.