-
Notifications
You must be signed in to change notification settings - Fork 127
/
Dockerfile
42 lines (25 loc) · 1004 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Base Template Dockerfile for Operator Image.
#
ARG imagebase
FROM ${imagebase} as base
FROM ubuntu:xenial-20210114
LABEL name="MongoDB Enterprise Operator" \
maintainer="support@mongodb.com" \
vendor="MongoDB" \
version="1.10.0" \
release="1" \
summary="MongoDB Enterprise Operator Image" \
description="MongoDB Enterprise Operator Image"
# Adds up-to-date CA certificates.
RUN apt-get -qq update && \
apt-get -y -qq install ca-certificates curl && \
apt-get upgrade -y -qq && \
apt-get dist-upgrade -y -qq && \
rm -rf /var/lib/apt/lists/*
COPY --from=base /data/mongodb-enterprise-operator /usr/local/bin/mongodb-enterprise-operator
COPY --from=base /data/version_manifest.json /var/lib/mongodb-enterprise-operator/version_manifest.json
COPY --from=base /data/licenses /licenses/
RUN chmod a+r /var/lib/mongodb-enterprise-operator/version_manifest.json
USER 2000
ENTRYPOINT exec /usr/local/bin/mongodb-enterprise-operator