Add go environment vendor directory support (#781)

* Add go environment vendor directory support
* Use symbolink instead of copying files to gopath
* Add go vendor example package & test
This commit is contained in:
Ta-Ching Chen
2018-07-13 13:16:22 +08:00
committed by GitHub
parent 3707b95edb
commit 425e447e5c
5 changed files with 56 additions and 16 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ FROM ${BUILDER_IMAGE}
FROM golang:${GO_VERSION}
COPY --from=0 /builder /builder
ENV GOPATH /usr
WORKDIR ${GOPATH}
COPY --from=0 /builder /builder
ADD build.sh /usr/local/bin/build