Files
python313/.devcontainer/devcontainer.json
2025-12-07 09:44:04 +00:00

52 lines
1.4 KiB
JSON

{
"name": "Python Dev",
"build": {
"dockerfile": "Dockerfile",
"context": ".",
"args": {
"PYTHON_VERSION": "3.13"
}
},
"containerEnv": {
"PIP_INDEX_URL": "https://dv.masara.eu/repository/pypi-group/simple"
// alebo "/simple", ak to Nexus vyžaduje
},
"remoteEnv": {
"DOCKER_BUILDKIT": "1"
},
"workspaceFolder": "/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"remoteUser": "root",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter",
"ms-python.black-formatter",
"ms-python.isort",
"ms-azuretools.vscode-docker"
],
"settings": {
"[python]": {
"editor.defaultFormatter": "ms-python.python"
},
"python.formatting.provider": "black",
"python.analysis.extraPaths": [
"/app"
],
"editor.formatOnSave": true,
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
"remote.restoreForwardedPorts": false
}
}
},
"mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"postCreateCommand": "bash .devcontainer/post_create.sh",
"forwardPorts": [
// 8000,
// 8080
]
}