add codespaces devcontainer spec
This commit is contained in:
parent
af826d38df
commit
49de109149
35
.devcontainer/devcontainer.json
Normal file
35
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,35 @@
|
||||
// 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
|
||||
{
|
||||
"name": "Python 3",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
|
||||
"customizations": {
|
||||
"codespaces": {
|
||||
"openFiles": [
|
||||
"README.md",
|
||||
"streamlit_app.py"
|
||||
]
|
||||
},
|
||||
"vscode": {
|
||||
"settings": {},
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance"
|
||||
]
|
||||
}
|
||||
},
|
||||
"updateContentCommand": "[ -f packages.txt ] && xargs sudo apt-get install <packages.txt; pip3 install --user -r requirements.txt",
|
||||
"postAttachCommand": {
|
||||
"server": "streamlit run streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false"
|
||||
},
|
||||
"portsAttributes": {
|
||||
"8501": {
|
||||
"label": "Application",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
"forwardPorts": [
|
||||
8501
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user