Skip to content

Commit b86e85b

Browse files
authored
Merge pull request #48 from servian/Dockerfile-fix
Dockerfile fix - added `go mod tidy` to go-swagger to fetch all required dependencies.
2 parents 5d64b87 + 8525dc8 commit b86e85b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
77
ARG SWAGGER_UI_VERSION=3.20.9
88

99
RUN go get -d -v github.com/go-swagger/go-swagger \
10+
&& cd $GOPATH/src/github.com/go-swagger/go-swagger \
11+
&& go mod tidy \
1012
&& go install github.com/go-swagger/go-swagger/cmd/swagger \
1113
&& curl -sfL https://github.com/swagger-api/swagger-ui/archive/v$SWAGGER_UI_VERSION.tar.gz | tar xz -C /tmp/ \
1214
&& mv /tmp/swagger-ui-$SWAGGER_UI_VERSION /tmp/swagger \

0 commit comments

Comments
 (0)