mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
bump Dockerfile golang from 1.10 to 1.11
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
parent
2cc6838ca3
commit
1ecd47e007
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue