mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
19 lines
727 B
Docker
19 lines
727 B
Docker
FROM docker@sha256:4a8f2764540726507f92920a17e63e026b8e9f4820a7dc00debb46639db69aff
|
|
|
|
ENV GO_VERSION=1.18.2
|
|
ENV PATH=$PATH:/usr/local/go/bin:/usr/bin/env:/root/go/bin
|
|
|
|
WORKDIR /grype
|
|
|
|
COPY go.mod go.sum Makefile /grype/
|
|
COPY .github .github
|
|
|
|
RUN docker-entrypoint.sh sh && \
|
|
apk update && \
|
|
apk add make curl build-base bash ncurses openssl && \
|
|
curl -OL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
|
|
tar -C /usr/local -xf go${GO_VERSION}.linux-amd64.tar.gz && \
|
|
go install github.com/go-delve/delve/cmd/dlv@d9d8f4ad8c9b0c9cc74b100fb1afb109f89dd493 && \
|
|
# fix all line terminations in .sh scripts for windows
|
|
find . -name "*.sh" -exec sed -i -e 's/\r$//' {} + && \
|
|
make bootstrap
|