* Add go environment vendor directory support * Use symbolink instead of copying files to gopath * Add go vendor example package & test
14 lines
208 B
Docker
14 lines
208 B
Docker
ARG BUILDER_IMAGE=fission/builder
|
|
ARG GO_VERSION=1.9.2
|
|
|
|
FROM ${BUILDER_IMAGE}
|
|
|
|
FROM golang:${GO_VERSION}
|
|
|
|
ENV GOPATH /usr
|
|
WORKDIR ${GOPATH}
|
|
|
|
COPY --from=0 /builder /builder
|
|
ADD build.sh /usr/local/bin/build
|
|
|