Merge pull request #249 from andrewhsu/go

bump Dockerfile golang from 1.10 to 1.11
This commit is contained in:
Cosmin Cojocar 2018-10-03 08:35:47 +02:00 committed by GitHub
commit f9b41874b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,11 @@
FROM golang:1.10.4-alpine3.8 as build FROM golang:1.11.1-alpine3.8 as build
WORKDIR /go/src/github.com/securego/gosec WORKDIR /go/src/github.com/securego/gosec
COPY . . COPY . .
RUN apk add -U git make RUN apk add -U git make
RUN go get -u github.com/golang/dep/cmd/dep RUN go get -u github.com/golang/dep/cmd/dep
RUN make RUN make
FROM golang:1.10.4-alpine3.8 FROM golang:1.11.1-alpine3.8
RUN apk add -U gcc musl-dev RUN apk add -U gcc musl-dev
COPY --from=build /go/src/github.com/securego/gosec/gosec /usr/local/bin/gosec COPY --from=build /go/src/github.com/securego/gosec/gosec /usr/local/bin/gosec
ENTRYPOINT ["gosec"] ENTRYPOINT ["gosec"]