Update Dockerfile

Fix Dockerfile for Mongo to apt-get install tzdata as its missing.
This commit is contained in:
Sonic
2020-06-14 17:03:24 +10:00
committed by GitHub
parent 54dd8916eb
commit 520b32b890

View File

@@ -7,9 +7,14 @@ FROM mongo:3.4
MAINTAINER Luke Berndt <lukekb@gmail.com>
# 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