mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
新增git的docker化镜像
This commit is contained in:
parent
54a8eb091a
commit
b9f7f54c2d
17
git/Dockerfile
Executable file
17
git/Dockerfile
Executable 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
7
git/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Git
|
||||
|
||||
基于 [alpine/git](https://hub.docker.com/r/alpine/git) 进行修改,修改alpine基础源的安装一些基础工具。
|
||||
|
||||
详细请参考: https://hub.docker.com/r/alpine/git
|
||||
|
||||
|
@ -62,6 +62,6 @@ Alpine构建脚本可参考 [brainsiq/alpine-siege](https://github.com/brainsiq/
|
||||
|
||||
* Dockerfile-python2
|
||||
|
||||
带python2.7的siege运行环境
|
||||
带python2.7的siege运行环境,ENTRYPOINT为python命令,因为这个镜像环境一般是适用于用python来操作siege的情况。
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user