Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locally building attempt with docker build . -t trivy-db results in COPY failed: no source files were specified #261

Open
shoguevara opened this issue Nov 9, 2022 · 0 comments

Comments

@shoguevara
Copy link

shoguevara commented Nov 9, 2022

I pretty much guess that I'm doing something wrong, but on attempt to build database locally (in a VM with ubuntu22) using
build . -t trivy-db
command, the process goes through all stages seemingly correctly, but in the very end stops with the message:

Step 8/9 : FROM scratch
 ---> 
Step 9/9 : COPY --from=builder /build/assets/trivy*.db.gz .
COPY failed: no source files were specified

As a result there is an image 4.5G in size without any labels in docker image list (I guess it's intermediary uncopressed image with the definitions and vuln bases)
Tried to dig around but quickly realized that's it a bit more than I can chew on right now

Same operation on my mac seemingly concludes without error messages, but the resulting file is less than 1M. Definately not the size it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant