mirror of
https://github.com/securego/gosec.git
synced 2024-11-06 03:55:50 +00:00
1ecd47e007
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
11 lines
324 B
Docker
11 lines
324 B
Docker
FROM golang:1.11.1-alpine3.8 as build
|
|
WORKDIR /go/src/github.com/securego/gosec
|
|
COPY . .
|
|
RUN apk add -U git make
|
|
RUN go get -u github.com/golang/dep/cmd/dep
|
|
RUN make
|
|
|
|
FROM golang:1.11.1-alpine3.8
|
|
RUN apk add -U gcc musl-dev
|
|
COPY --from=build /go/src/github.com/securego/gosec/gosec /usr/local/bin/gosec
|
|
ENTRYPOINT ["gosec"]
|