mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-01 19:38:30 +08:00
19 lines
533 B
Docker
Executable File
19 lines
533 B
Docker
Executable File
FROM registry:2
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
|
|
# 使用阿里云镜像
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
|
# Install base packages
|
|
RUN apk --no-cache update && \
|
|
apk --no-cache upgrade && \
|
|
apk --no-cache add curl bash tzdata tar unzip && \
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
echo "Asia/Shanghai" > /etc/timezone && \
|
|
echo -ne "Alpine Linux 3.8 image. (`uname -rsv`)\n" >> /root/.built && \
|
|
rm -fr /tmp/* /var/cache/apk/*
|
|
|
|
|