This commit is contained in:
Thephaseless 2024-08-25 15:11:03 +00:00
parent a0b61c9251
commit bbb05b255f

View File

@ -1,42 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // 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 // README at: https://github.com/devcontainers/templates/tree/main/src/python
{ {
"name": "Python 3", "name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": { "build": {
"dockerfile": "Dockerfile" "dockerfile": "Dockerfile"
}, },
"runArgs": [ "runArgs": ["-p", "8181:8191"],
"-p", "customizations": {
"8181:8191" "vscode": {
], "extensions": [
"customizations": { "charliermarsh.ruff",
"vscode": { "-ms-python.autopep8",
"extensions": [ "-ms-python.vscode-pylance"
"charliermarsh.ruff", ],
"-ms-python.autopep8", "settings": {
"-ms-python.vscode-pylance" "python.venvPath": "./venv"
], }
"settings": { }
"python.venvPath": "./venv" },
} "postStartCommand": "poetry install",
} // Features to add to the dev container. More info: https://containers.dev/features.
}, // "features": {},
"postStartCommand": "poetry install", // Use 'forwardPorts' to make a list of ports inside the container available locally.
// Features to add to the dev container. More info: https://containers.dev/features. "forwardPorts": [6080],
// "features": {}, "features": {
// Use 'forwardPorts' to make a list of ports inside the container available locally. "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"forwardPorts": [ "ghcr.io/devcontainers/features/desktop-lite:1": {}
6080 }
], // Use 'postCreateCommand' to run commands after the container is created.
"features": { // "postCreateCommand": "pip3 install --user -r requirements.txt",
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, // Configure tool-specific properties.
"ghcr.io/devcontainers/features/desktop-lite:1": {} // "customizations": {},
} // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// Use 'postCreateCommand' to run commands after the container is created. // "remoteUser": "root"
// "postCreateCommand": "pip3 install --user -r requirements.txt", }
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}