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: 1%

Popularity: 1%