This commit is contained in:
parent
0c7c9334ef
commit
434ec873dd
@ -1,7 +1,10 @@
|
||||
ARG IMG_TAG=1
|
||||
FROM golang:${IMG_TAG} as builder
|
||||
RUN go get -u github.com/go-bindata/go-bindata/... \
|
||||
&& go get -u github.com/go-swagger/go-swagger/...
|
||||
RUN go get -u -v github.com/go-bindata/go-bindata/... \
|
||||
&& dir=$(mktemp -d) \
|
||||
&& git clone https://github.com/go-swagger/go-swagger "$dir" \
|
||||
&& cd "$dir" \
|
||||
&& go install ./cmd/swagger
|
||||
|
||||
FROM golang:${IMG_TAG}
|
||||
COPY --from=builder /go/bin/swagger /usr/bin
|
||||
|
Loading…
Reference in New Issue
Block a user