1. 时区处理
RUN apk update && apk add curl bash tree tzdata
&& cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime
2. 测试使用
FROM alpine:3.4
MAINTAINER dalongrong
# Install base packages
RUN apk update && apk add curl bash tree tzdata
&& cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime
&& apk del tzdata
CMD ["/bin/bash"]
3. 参考构建
docker hub 自动构建
docker pull dalongrong/alpine-timezone