build: support building inside a container

This commit is contained in:
Ramkumar Chinchani
2019-08-14 12:35:51 -07:00
parent 735e8589f7
commit 2a96e73384
3 changed files with 39 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM golang:1.12.8
RUN go version
ENV GO111MODULE on
RUN go get -u github.com/swaggo/swag/cmd/swag
WORKDIR /go/src/github.com/anuvu/zot
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.17.1