Skip to content

Embed Trivy into Dockerfile #329

Closed
Closed
@knqyf263

Description

Abstract

Like:
https://github.com/aquasecurity/microscanner#adding-microscanner-to-your-dockerfile

Example

$ cat Dockerfile
FROM alpine:3.10
ADD https://github.com/aquasecurity/trivy/releases/download/v0.3.1/trivy_0.3.1_Linux-64bit.tar.gz
RUN ./trivy
$ docker build -t test .
...
alpine:3.10 (alpine 3.10.2)
===========================
Total: 3 (UNKNOWN: 0, LOW: 1, MEDIUM: 2, HIGH: 0, CRITICAL: 0)

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions