Skip to content

Instantly share code, notes, and snippets.

@j4zzcat
Created April 19, 2021 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j4zzcat/8a99611e838bf9d5e4f494f344e09b43 to your computer and use it in GitHub Desktop.
Save j4zzcat/8a99611e838bf9d5e4f494f344e09b43 to your computer and use it in GitHub Desktop.
Set timezone in Ubuntu docker container
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