hanwenlong 1 年間 前
コミット
94a070860b
2 ファイル変更19 行追加0 行削除
  1. 11 0
      Dockerfile
  2. 8 0
      push.sh

+ 11 - 0
Dockerfile

@@ -0,0 +1,11 @@
+FROM golang:1.9.2
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY crontab /go/bin/
+RUN chmod +x /go/bin/crontab
+COPY agollo.json /go/bin/
+WORKDIR /go/bin
+
+CMD ["/go/bin/crontab"]
+

+ 8 - 0
push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t xyxiaochengxv-registry-vpc.cn-beijing.cr.aliyuncs.com/xyxiaochengxv/invite-bean:${release} .
+docker push xyxiaochengxv-registry-vpc.cn-beijing.cr.aliyuncs.com/xyxiaochengxv/invite-bean:${release}