Created
April 19, 2021 06:27
-
-
Save j4zzcat/8a99611e838bf9d5e4f494f344e09b43 to your computer and use it in GitHub Desktop.
Set timezone in Ubuntu docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
# Set TZ to Asia/Jerusalem | |
# For valid combinations, run 'dpkg-reconfigure -f noninteractive tzdata' | |
RUN export DEBIAN_FRONTEND=noninteractive \ | |
&& export DEBCONF_NONINTERACTIVE_SEEN=true \ | |
&& echo 'tzdata tzdata/Areas select Asia' | debconf-set-selections \ | |
&& echo 'tzdata tzdata/Zones/Asia select Jerusalem' | debconf-set-selections \ | |
&& apt-get update -y \ | |
&& apt-get install -y --no-install-recommends tzdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment