新增git的docker化镜像

This commit is contained in:
KennyLee 2019-04-16 16:37:14 +08:00
parent 54a8eb091a
commit b9f7f54c2d
3 changed files with 25 additions and 1 deletions

17
git/Dockerfile Executable file
View File

@ -0,0 +1,17 @@
FROM alpine/git
MAINTAINER kennylee26 <kennylee26@gmail.com>
# 使用阿里云镜像
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"]

7
git/README.md Normal file
View File

@ -0,0 +1,7 @@
# Git
基于 [alpine/git](https://hub.docker.com/r/alpine/git) 进行修改修改alpine基础源的安装一些基础工具。
详细请参考: https://hub.docker.com/r/alpine/git

View File

@ -62,6 +62,6 @@ Alpine构建脚本可参考 [brainsiq/alpine-siege](https://github.com/brainsiq/
* Dockerfile-python2
带python2.7的siege运行环境
带python2.7的siege运行环境ENTRYPOINT为python命令因为这个镜像环境一般是适用于用python来操作siege的情况。