{ // The name of the dev container "name": "Focal", // The Dockerfile to use for building the dev container "dockerFile": "../Dockerfile", // This is the key setting to prevent VS Code from overriding your CMD. // Setting it to 'false' ensures your Dockerfile's CMD command is respected. "overrideCommand": false, "runArgs": [ "--env-file", ".env" ], // Any ports to forward from the container to your local machine "forwardPorts": [7860], // Extensions to install in the container "customizations": { "vscode": { "extensions": [ "ms-python.python", "ms-python.vscode-pylance" ] } } }