This commit is contained in:
commit
121c1aca36
13 changed files with 736 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM golang:1-alpine AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /bin/plugin .
|
||||
|
||||
FROM anchore/syft
|
||||
|
||||
COPY --from=builder /bin/plugin /bin/plugin
|
||||
ENTRYPOINT ["/bin/plugin"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue