From acd9c7918dddb3178c15d3dc7b6b18683a679597 Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Sun, 12 May 2024 13:26:06 +0200 Subject: [PATCH] Set local time before installing tzdata --- images/mongodb-s3-backup/Dockerfile | 2 +- images/postgresql-s3-backup/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/images/mongodb-s3-backup/Dockerfile b/images/mongodb-s3-backup/Dockerfile index d689a18..5d7693b 100644 --- a/images/mongodb-s3-backup/Dockerfile +++ b/images/mongodb-s3-backup/Dockerfile @@ -4,9 +4,9 @@ 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 \ + && ln -fs /usr/share/zoneinfo/UTC /etc/localtime \ && apt update \ && apt-get install -y tzdata gnupg wget mongodb-mongosh curl unzip \ - && ln -fs /usr/share/zoneinfo/UTC /etc/localtime \ && dpkg-reconfigure --frontend noninteractive tzdata \ && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \ diff --git a/images/postgresql-s3-backup/Dockerfile b/images/postgresql-s3-backup/Dockerfile index 2d024be..c65fc35 100644 --- a/images/postgresql-s3-backup/Dockerfile +++ b/images/postgresql-s3-backup/Dockerfile @@ -3,8 +3,8 @@ FROM ubuntu:22.04 WORKDIR /dump RUN apt update \ - && apt-get install -y tzdata postgresql-client curl unzip \ && ln -fs /usr/share/zoneinfo/UTC /etc/localtime \ + && apt-get install -y tzdata postgresql-client curl unzip \ && dpkg-reconfigure --frontend noninteractive tzdata \ && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \