From b9f7f54c2d134be5d96496eea10659956bf3f3f2 Mon Sep 17 00:00:00 2001 From: KennyLee Date: Tue, 16 Apr 2019 16:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Egit=E7=9A=84docker=E5=8C=96?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/Dockerfile | 17 +++++++++++++++++ git/README.md | 7 +++++++ siege/README.md | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 git/Dockerfile create mode 100644 git/README.md diff --git a/git/Dockerfile b/git/Dockerfile new file mode 100755 index 0000000..39222f8 --- /dev/null +++ b/git/Dockerfile @@ -0,0 +1,17 @@ +FROM alpine/git + +MAINTAINER kennylee26 + +# 使用阿里云镜像 +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"] diff --git a/git/README.md b/git/README.md new file mode 100644 index 0000000..cf9a387 --- /dev/null +++ b/git/README.md @@ -0,0 +1,7 @@ +# Git + +基于 [alpine/git](https://hub.docker.com/r/alpine/git) 进行修改,修改alpine基础源的安装一些基础工具。 + +详细请参考: https://hub.docker.com/r/alpine/git + + diff --git a/siege/README.md b/siege/README.md index 6576fe5..6903ecb 100644 --- a/siege/README.md +++ b/siege/README.md @@ -62,6 +62,6 @@ Alpine构建脚本可参考 [brainsiq/alpine-siege](https://github.com/brainsiq/ * Dockerfile-python2 - 带python2.7的siege运行环境 + 带python2.7的siege运行环境,ENTRYPOINT为python命令,因为这个镜像环境一般是适用于用python来操作siege的情况。