1// For format details, see https://aka.ms/devcontainer.json. For config options, see the 2// README at: https://github.com/devcontainers/templates/tree/main/src/anaconda 3{ 4 "name": "PyTorch - CPU", 5 "build": { 6 "context": "../..", 7 "dockerfile": "../Dockerfile", 8 "args": { 9 "USERNAME": "vscode", 10 "BUILDKIT_INLINE_CACHE": "0", 11 "CLANG_VERSION": "" 12 } 13 }, 14 15 // Features to add to the dev container. More info: https://containers.dev/features. 16 "features": { 17 // This is needed for lintrunner 18 "ghcr.io/devcontainers/features/rust:1" : {} 19 }, 20 21 // Use 'forwardPorts' to make a list of ports inside the container available locally. 22 // "forwardPorts": [], 23 24 // Use 'postCreateCommand' to run commands after the container is created. 25 "postCreateCommand": "bash .devcontainer/scripts/install-dev-tools.sh", 26 27 // Configure tool-specific properties. 28 // "customizations": {}, 29 "customizations": { 30 "vscode": { 31 "extensions": ["streetsidesoftware.code-spell-checker"] 32 } 33 } 34 35 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. 36 // "remoteUser": "root" 37} 38