diff --git a/examples/npm-lock/.dockerignore b/examples/npm-lock/.dockerignore index f3d6549d..f0345687 100644 --- a/examples/npm-lock/.dockerignore +++ b/examples/npm-lock/.dockerignore @@ -1 +1,2 @@ -/build/ \ No newline at end of file +/build/ +/node_modules/ \ No newline at end of file diff --git a/examples/npm-lock/.gitignore b/examples/npm-lock/.gitignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/examples/npm-lock/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/examples/npm-lock/Dockerfile b/examples/npm-lock/Dockerfile index 0c93b747..eb7c7a53 100644 --- a/examples/npm-lock/Dockerfile +++ b/examples/npm-lock/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -# Copyright 2022 buildkit-syft-scanner authors +# Copyright 2024 buildkit-syft-scanner authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,6 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM scratch +FROM scratch AS base +COPY package-lock.json . +COPY <