Update go version to 1.11.5 in the docker file

This commit is contained in:
Cosmin Cojocar 2019-02-28 09:44:08 +01:00 committed by Grant Murphy
parent 9cd538fcf2
commit 8b27d1c091

View file

@ -1,11 +1,11 @@
FROM golang:1.11.1-alpine3.8 as build FROM golang:1.11.5-alpine3.9 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.11.1-alpine3.8 FROM golang:1.11.5-alpine3.9
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"]