From f7efe49e5e5014a2b3039f39272d02e0d666aaed Mon Sep 17 00:00:00 2001 From: Martin Heide Date: Thu, 12 Nov 2020 12:03:49 +0000 Subject: [PATCH] Copy module dependencies to Docker image for CVE scanning / dependency analysis Signed-off-by: Martin Heide --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index bf50d51e..1fd4cbb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,10 @@ USER 1001:1001 COPY --from=0 /go/bin/dex /usr/local/bin/dex +# Copy module dependencies for CVE scanning / dependency analysis. +COPY go.mod go.sum /opt/dex/dependencies/ +COPY api/v2/go.mod api/v2/go.sum /opt/dex/dependencies/api/v2/ + # Import frontend assets and set the correct CWD directory so the assets # are in the default path. COPY web web