Files
trunk-server/mongo/Dockerfile
Sonic 520b32b890 Update Dockerfile
Fix Dockerfile for Mongo to apt-get install tzdata as its missing.
2020-06-14 17:03:24 +10:00

37 lines
835 B
Docker

# Create proxy container for www.example.com
#
# docker build -t mongo .
FROM mongo:3.4
MAINTAINER Luke Berndt <lukekb@gmail.com>
# Set timezone
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
ADD totals.js /app
ADD init_test_db.js /app
ADD upgrade_db_admin.js /app
ADD permissions.js /app
ADD errors.js /app
ADD clean.js /app
# Add crontab file in the cron directory
#ADD crontab /etc/cron.d/trim-cron
# Give execution rights on the cron job
#RUN chmod 0644 /etc/cron.d/trim-cron
# Run the command on container startup
#CMD cron
WORKDIR /app