devcontainer.json•1.5 kB
{
"name": "BS MCP Server",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"features": {
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {}
},
"forwardPorts": [8000],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": {
"safe-directory": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"uv": "curl -LsSf https://astral.sh/uv/install.sh | sh && sudo `which uv` pip install --system -e \".[test,dev]\" || exit 0",
"known_hosts": "sudo chown ${USER}:${USER} ${HOME}/.ssh && ssh-keyscan github.com > ${HOME}/.ssh/known_hosts"
},
// Allows to connect to services on the host machine (e.g Ollama) from inside the container.
// "runArgs": [ "--add-host=host.docker.internal:host-gateway"],
// "mounts": [
// "source=${localEnv:HOME}/.ssh/config,target=/home/vscode/.ssh/config,type=bind,consistency=cached",
// "source=${localEnv:HOME}/.ssh/id_rsa,target=/home/vscode/.ssh/github_id_rsa,type=bind,consistency=cached"
// ],
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.autopep8",
"charliermarsh.ruff",
"tamasfe.even-better-toml",
"davidanson.vscode-markdownlint",
"backnotprop.prompt-tower"
]
}
}
}