Skip to content
Snippets Groups Projects
Commit e1e9fd12 authored by Iain Bryson's avatar Iain Bryson
Browse files

Use TZ Dockerfile argument to set the time zone. For...

Use TZ Dockerfile argument to set the time zone.  For https://github.com/dtu-compute/dtu-enote/issues/62
parent b58f741f
Branches
No related tags found
No related merge requests found
FROM fedora:23 FROM fedora:23
RUN ln -sf /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime && \ LABEL github="https://github.com/dtu-compute/dtu-enote-mongodb"
dnf -y update && \ LABEL version="2018"
LABEL description="This Dockerfile builds the container \
MongoDB that serves ShareLatex."
ARG TZ=Europe/Copenhagen
# Set timezone
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime
RUN bash -l -c 'echo "${TZ}" > /etc/timezone'
RUN dnf -y update && \
dnf -y install mongodb mongodb-server mongo-tools pwgen iproute && \ dnf -y install mongodb mongodb-server mongo-tools pwgen iproute && \
dnf clean all dnf clean all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment