From ef5c1073ee92b0146102d0d77373368b6995e136 Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Sun, 12 May 2024 13:33:36 +0200 Subject: [PATCH] Fix Mongodb backup image build --- images/mongodb-s3-backup/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/images/mongodb-s3-backup/Dockerfile b/images/mongodb-s3-backup/Dockerfile index 5d7693b..88792f2 100644 --- a/images/mongodb-s3-backup/Dockerfile +++ b/images/mongodb-s3-backup/Dockerfile @@ -2,12 +2,14 @@ FROM ubuntu:22.04 WORKDIR /dump -RUN wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | tee /etc/apt/trusted.gpg.d/server-7.0.asc \ - && echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \ +RUN apt update \ && ln -fs /usr/share/zoneinfo/UTC /etc/localtime \ - && apt update \ - && apt-get install -y tzdata gnupg wget mongodb-mongosh curl unzip \ + && apt-get install -y tzdata gnupg wget curl unzip \ && dpkg-reconfigure --frontend noninteractive tzdata \ + && wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | tee /etc/apt/trusted.gpg.d/server-7.0.asc \ + && echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \ + && apt update \ + && apt-get install -y mongodb-mongosh \ && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \ && ./aws/install \