|
|
|
@ -4,6 +4,9 @@ ENV TZ=Etc/UTC |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
|
|
|
RUN set -eux; \ |
|
|
|
RUN set -eux; \ |
|
|
|
|
|
|
|
sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \ |
|
|
|
|
|
|
|
sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \ |
|
|
|
|
|
|
|
sed -i -e 's/http/https/g' /etc/apt/sources.list ; \ |
|
|
|
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget ; \ |
|
|
|
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget ; \ |
|
|
|
# MongoDB 5.0 release signing key |
|
|
|
# MongoDB 5.0 release signing key |
|
|
|
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv B00A0BD1E2C63C11 ; \ |
|
|
|
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv B00A0BD1E2C63C11 ; \ |
|
|
|
@ -12,6 +15,6 @@ RUN set -eux; \ |
|
|
|
echo ${TZ} > /etc/timezone; |
|
|
|
echo ${TZ} > /etc/timezone; |
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update; \ |
|
|
|
RUN apt-get update; \ |
|
|
|
apt-get install -y mongodb-org=5.0.0 mongodb-org-server=5.0.0 mongodb-org-shell=5.0.0 mongodb-org-mongos=5.0.0 mongodb-org-tools=5.0.0; \ |
|
|
|
apt-get install -y mongodb-org=5.0.3 mongodb-org-server=5.0.3 mongodb-org-shell=5.0.3 mongodb-org-mongos=5.0.3 mongodb-org-tools=5.0.3; \ |
|
|
|
apt-get clean; \ |
|
|
|
apt-get clean; \ |
|
|
|
rm -rf /var/lib/apt/lists/*; |
|
|
|
rm -rf /var/lib/apt/lists/*; |
|
|
|
|