34 lines
947 B
JSON
34 lines
947 B
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
|
{
|
|
"name": "Python (uv)",
|
|
"image": "mcr.microsoft.com/devcontainers/python:3.12",
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/va-h/devcontainers-features/uv:1": {}
|
|
},
|
|
|
|
"containerEnv": {
|
|
// The uv cache and .venv are on different filesystems in the container:
|
|
// copy instead of hardlinking to avoid a warning on every install.
|
|
"UV_LINK_MODE": "copy"
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// 8000 is used by `uv run mkdocs serve`.
|
|
"forwardPorts": [8000],
|
|
|
|
"postCreateCommand": "uv sync",
|
|
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"charliermarsh.ruff"
|
|
]
|
|
}
|
|
}
|
|
}
|