1
0
Fork 0

update Dockerfile

master
502647092 2018-09-02 20:19:15 +08:00
parent 591586947d
commit 0d7dea6932
1 changed files with 5 additions and 1 deletions

View File

@ -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}"]