2017-01-26 12:05:51 +08:00
|
|
|
FROM alpine:3.4
|
|
|
|
|
|
|
|
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
|
|
|
|
2017-03-01 17:55:52 +08:00
|
|
|
# 使用阿里云镜像
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
2017-03-01 17:37:27 +08:00
|
|
|
|
2017-01-26 12:05:51 +08:00
|
|
|
# Install base packages
|
2017-01-26 13:15:39 +08:00
|
|
|
RUN apk --no-cache update && \
|
|
|
|
apk --no-cache upgrade && \
|
|
|
|
apk --no-cache add curl bash tzdata tar unzip && \
|
2017-01-26 12:05:51 +08:00
|
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
|
|
echo "Asia/Shanghai" > /etc/timezone && \
|
2017-01-27 11:38:44 +08:00
|
|
|
echo -ne "Alpine Linux 3.4 image. (`uname -rsv`)\n" >> /root/.built && \
|
|
|
|
rm -fr /tmp/* /var/cache/apk/*
|
2017-01-26 12:05:51 +08:00
|
|
|
|
|
|
|
# Define bash as default command
|
|
|
|
CMD ["/bin/bash"]
|