more robust timezone detection (fixes #12)

This commit is contained in:
Scott Lamb
2018-08-31 17:19:24 -07:00
parent fc0bc51bed
commit aa81eae65a
4 changed files with 67 additions and 21 deletions

View File

@@ -6,7 +6,6 @@ RUN apt-get update && \
apt-get install -y apt-utils && \
apt-get install -y apt-transport-https tzdata git curl sudo vim && \
rm -rf /var/lib/apt/lists/*
RUN ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
RUN groupadd -r moonfire-nvr && \
useradd moonfire-nvr --no-log-init -m -r -g moonfire-nvr && \
echo 'moonfire-nvr ALL=(ALL) NOPASSWD: ALL' >>/etc/sudoers