如果不固定时区, 可能导致数据库入库的时间和前端显示的时间对不上.
FROM alpine
RUN apk --no-cache add tzdata &&
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&
echo "Asia/Shanghai" > /etc/timezone
Content type
Image
Digest
Size
2.3 MB
Last updated
about 8 years ago
docker pull bysir/alpine-shanghai