add devcontainer
This commit is contained in:
parent
d6f3e5cb1a
commit
278a5d6293
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue