Archive for Октябрь, 2018

How set timezone for docker alpine image

Четверг, Октябрь 18th, 2018

Simple set TZ env var, install tzdata and change timezone configuration
#change timezone on Moskow
ENV TZ=Europe/Moscow
RUN apk –update add tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apk del tzdata
Popularity: 23%

Popularity: 23%