add tzdata: +08:00 add busybox-extras : telnet
4.7K
增加telnet基本工具;
设备时区为东八区;
更换为阿里云镜像。
FROM alpine:latest
#设置代理镜像
RUN alpine_version=`cat /etc/issue | head -1 | awk '{print $5}'` \
&& echo -e https://mirrors.aliyun.com/alpine/v${alpine_version}/main/ > /etc/apk/repositories
#设置时区
RUN apk update && apk upgrade \
&& apk add --no-cache tzdata busybox-extras \
&& alpine_version=`cat /etc/issue | head -1 | awk '{print $5}'` \
&& apk add upx --repository=https://mirrors.aliyun.com/alpine/v${alpine_version}/community \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata \
&& date -R
Content type
Image
Digest
sha256:77a3700e9…
Size
8 MB
Last updated
almost 3 years ago
docker pull qida/alpine