From 0d7dea6932862691bcaf5300d121a56fc4617edc Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sun, 2 Sep 2018 20:19:15 +0800 Subject: [PATCH] update Dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 92a7620..29305ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,8 @@ RUN apk add --no-cache ca-certificates COPY --from=build /go/src/github.com/yumc.pw/cloud/cloud ./main -CMD ["./main"] +ENV SOURCE=yumc.pw +ENV TARGET=https://git.yumc.pw +ENV PROTOCOL=git + +CMD ["./main", "-s", "${SOURCE}", "-t", "${TARGET}", "-p", "${PROTOCOL}"]