On Thu, Nov 05, 2020 at 08:13:01PM +0800, Li Yuanchao wrote:
add container webhook
Add [why or what] at the begining, it'll seems more clear.
Signed-off-by: Li Yuanchao lyc163mail@163.com
container/webhook/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 container/webhook/Dockerfile
diff --git a/container/webhook/Dockerfile b/container/webhook/Dockerfile new file mode 100644 index 0000000..61d7f07 --- /dev/null +++ b/container/webhook/Dockerfile @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+FROM node:10.21.0-alpine +MAINTAINER Li Yuanchao lyc163mail@163.com
+ADD root /
+RUN sed -ri.origin 's|^https?://dl-cdn.alpinelinux.org|http://mirrors.huaweicloud.com%7Cg' /etc/apk/repositories
+RUN apk update && \
- apk upgrade && \
- apk add --no-cache git && \
- apk add npm ruby-dev
+RUN echo ':sources: ["http://rubygems.org"]' >> ~/.gemrc
+RUN npm install git-webhook-handler &&\
- gem install bunny
^ Redundant line?
Thanks, Zhangyu
2.23.0