Skip to content

Commit

Permalink
add TZ env var to prevent system-looking errors
Browse files Browse the repository at this point in the history
As discussed in #720, these errors are resolved by setting the TZ
variable. Setting that variable in the images should ensure that
these errors are not seen across a wide array of environments.
  • Loading branch information
colearendt committed Apr 18, 2024
1 parent 75e5e62 commit 1c0c92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/base/Dockerfile.ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update \
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ=UTC

# Installation prerequisites --------------------------------------------------#
# curl is used to download things.
Expand Down
1 change: 1 addition & 0 deletions product/base/Dockerfile.ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ=UTC

### Clean up ###
RUN apt-get install -yqf --no-install-recommends \
Expand Down

0 comments on commit 1c0c92f

Please sign in to comment.