update Dockerfile

This commit is contained in:
502647092 2018-09-02 20:19:15 +08:00
parent 591586947d
commit 0d7dea6932

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