1
0
mirror of https://github.com/securego/gosec.git synced 2024-12-30 21:19:46 +02:00
gosec/Dockerfile
2019-03-06 17:18:50 +10:00

12 lines
324 B
Docker

FROM golang:1.11.5-alpine3.9 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.5-alpine3.9
RUN apk add -U gcc musl-dev
COPY --from=build /go/src/github.com/securego/gosec/gosec /usr/local/bin/gosec
ENTRYPOINT ["gosec"]