add devcontainer

This commit is contained in:
adrien 2023-06-29 07:55:56 +02:00
parent d6f3e5cb1a
commit 278a5d6293
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{
"name": "Python Dev Container",
"image": "python:3.9",
"customizations": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash"
}
},
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python"
]
}
},
"containerEnv": {
"DATABASE_URL": "sqlite:///database.db",
"FLASK_APP": "app.py",
"FLASK_ENV": "development"
},
"mounts": [
"source=${localWorkspaceFolder}/database.db,target=/workspace/database.db,type=bind",
"source=${localWorkspaceFolder},target=/workspace/app,type=bind,consistency=cached"
],
"postCreateCommand": "pip install -r requirements.txt"
}