Updating the source host for maintenance and added Trivy to the development container.

This commit is contained in:
James Wells 2022-04-15 15:43:33 +00:00
parent 8fea3b2527
commit d5ac24bb26
Signed by: jwells
GPG key ID: 73196D10B8E65666
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,8 @@
ARG VARIANT="1.18"
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
COPY --from=aquasec/trivy:0.25.4 /usr/local/bin/trivy /usr/bin/trivy
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi