go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/.devcontainer/Dockerfile (about)

     1  # Copyright (c) Mondoo, Inc.
     2  # SPDX-License-Identifier: BUSL-1.1
     3  
     4  # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/go/.devcontainer/base.Dockerfile
     5  
     6  # [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster
     7  ARG VARIANT="1.19-bullseye"
     8  FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
     9  
    10  # [Choice] Node.js version: none, lts/*, 18, 16, 14
    11  ARG NODE_VERSION="none"
    12  RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
    13  
    14  # [Optional] Uncomment this section to install additional OS packages.
    15  # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    16  #     && apt-get -y install --no-install-recommends <your-package-list-here>
    17  
    18  # [Optional] Uncomment the next lines to use go get to install anything else you need
    19  # USER vscode
    20  # RUN go get -x <your-dependency-or-tool>
    21  
    22  # [Optional] Uncomment this line to install global node packages.
    23  # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1