Skip to content

Commit 3e2b76f

Browse files
author
Eric Cornwell
committed
Updated Dockerfile with tzdata setup
1 parent fa71f20 commit 3e2b76f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/container/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ ENV CONDA_AUTO_ACTIVATE_BASE=false
7474
RUN mkdir -p ${CODE_PATH}
7575
WORKDIR ${CODE_PATH}
7676

77+
## Setup tzdata, update package index, upgrade packages and install needed software
78+
RUN truncate -s0 /tmp/preseed.cfg && \
79+
(echo "tzdata tzdata/Areas select America" >> /tmp/preseed.cfg) && \
80+
(echo "tzdata tzdata/Zones/America select Los_Angeles" >> /tmp/preseed.cfg) && \
81+
debconf-set-selections /tmp/preseed.cfg && \
82+
rm -f /etc/timezone /etc/localtime && \
83+
apt-get update && \
84+
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
85+
apt-get install -y tzdata
86+
## cleanup of files from setup
87+
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
88+
7789
# Install pre-dependencies
7890
RUN apt-get update -y
7991
RUN apt-get install wget -y

0 commit comments

Comments
 (0)