docker/git/Dockerfile

18 lines
508 B
Docker
Raw Normal View History

2019-04-16 16:37:14 +08:00
FROM alpine/git
2020-09-13 15:49:05 +08:00
MAINTAINER kennylee <kennylee26@gmail.com>
2019-04-16 16:37:14 +08:00
# 使用阿里云镜像
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 && \
rm -fr /tmp/* /var/cache/apk/*
# Define bash as default command
CMD ["/bin/bash"]