diff --git a/docker_templates/templates/snippet/setup_tzdata.Dockerfile.em b/docker_templates/templates/snippet/setup_tzdata.Dockerfile.em index 69fff5c..501ed5c 100644 --- a/docker_templates/templates/snippet/setup_tzdata.Dockerfile.em +++ b/docker_templates/templates/snippet/setup_tzdata.Dockerfile.em @@ -1,29 +1,7 @@ -@{ -releases_with_configured_tzdata = [ - 'artful', - 'lucid', - 'maverick', - 'nutty', - 'oneiric', - 'precise', - 'quantal', - 'raring', - 'saucy', - 'trusty', - 'utopic', - 'vivid', - 'wily', - 'xenial', - 'yakkety', - 'zesty', -] -}@ -@[if os_name == 'ubuntu' and os_code_name not in releases_with_configured_tzdata]@ +@[if os_name == 'ubuntu']@ # setup timezone -RUN echo 'Etc/UTC' > /etc/timezone && \ - ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ - apt-get update && \ - apt-get install -q -y --no-install-recommends tzdata && \ +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends --no-upgrade tzdata && \ rm -rf /var/lib/apt/lists/* @[end if]@