-
Notifications
You must be signed in to change notification settings - Fork 121
/
Dockerfile
34 lines (23 loc) · 1.06 KB
/
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
ARG imagebase
FROM ${imagebase} as base
FROM registry.access.redhat.com/ubi8/ubi-minimal
ARG version
LABEL name="MongoDB Enterprise Init Database" \
version="mongodb-enterprise-init-database-${version}" \
summary="MongoDB Enterprise Database Init Image" \
description="Startup Scripts for MongoDB Enterprise Database" \
release="1" \
vendor="MongoDB" \
maintainer="support@mongodb.com"
COPY --from=base /data/readinessprobe /probes/readinessprobe
COPY --from=base /data/probe.sh /probes/probe.sh
COPY --from=base /data/scripts/ /scripts/
COPY --from=base /data/licenses /licenses/
RUN microdnf update --nodocs \
&& microdnf -y install --nodocs tar gzip \
&& microdnf clean all
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
&& rm /tools/mongodb_tools.tgz
USER 2000
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]