Update devcontainer.json

This commit is contained in:
Phillip Kühne 2023-10-03 17:23:54 +00:00
parent 8f926621c1
commit 3d8cf665db
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA

View File

@ -1,33 +1,37 @@
{ {
"image": "mcr.microsoft.com/devcontainers/universal:2", "image": "mcr.microsoft.com/devcontainers/universal:2",
"hostRequirements": { "hostRequirements": {
"cpus": 4 "cpus": 4
},
"waitFor": "onCreateCommand",
"onCreateCommand": "curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash && sudo apt install -y libmariadb3 libmariadb-dev",
"updateContentCommand": "pip install -r backend/requirements.txt",
"postCreateCommand": "",
"postAttachCommand": {
"server": "flask --debug run"
},
"portsAttributes": {
"5000": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"customizations": {
"codespaces": {
"openFiles": [
"templates/index.html"
]
}, },
"waitFor": "onCreateCommand", "vscode": {
"onCreateCommand": "curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash && sudo apt install -y libmariadb3 libmariadb-dev", "extensions": [
"updateContentCommand": "pip install -r backend/requirements.txt", "ms-python.python"
"postCreateCommand": "", ]
"postAttachCommand": { }
"server": "flask --debug run" },
}, "forwardPorts": [
"portsAttributes": { 5000
"5000": { ],
"label": "Application", "features": {
"onAutoForward": "openPreview" "ghcr.io/devcontainers-contrib/features/angular-cli:2": {}
} }
}, }
"customizations": {
"codespaces": {
"openFiles": [
"templates/index.html"
]
},
"vscode": {
"extensions": [
"ms-python.python"
]
}
},
"forwardPorts": [5000]
}