Merge pull request #1863 from faro-oss/feature/go-mod-dockerimage

Copy module dependencies to Docker image for CVE scanning / dependency analysis
This commit is contained in:
Márk Sági-Kazár 2020-11-19 17:57:55 +01:00 committed by GitHub
commit d97d6de88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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