From 520b32b890b7f31ab6b815e9f2424ce856502054 Mon Sep 17 00:00:00 2001 From: Sonic Date: Sun, 14 Jun 2020 17:03:24 +1000 Subject: [PATCH] Update Dockerfile Fix Dockerfile for Mongo to apt-get install tzdata as its missing. --- mongo/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mongo/Dockerfile b/mongo/Dockerfile index 2467f25..52f42f0 100644 --- a/mongo/Dockerfile +++ b/mongo/Dockerfile @@ -7,9 +7,14 @@ FROM mongo:3.4 MAINTAINER Luke Berndt # Set timezone -RUN echo "America/New_York" > /etc/timezone \ - && dpkg-reconfigure -f noninteractive tzdata - + ENV TZ 'America/New_York' + RUN echo $TZ > /etc/timezone && \ + apt-get update && apt-get install -y tzdata && \ + rm /etc/localtime && \ + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ + dpkg-reconfigure -f noninteractive tzdata && \ + apt-get clean + # Add main NGINX config RUN mkdir -p /app ADD trim.js /app