mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-01-19 01:08:48 +00:00
33 lines
1016 B
JSON
33 lines
1016 B
JSON
|
{
|
||
|
"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",
|
||
|
"site.py"
|
||
|
]
|
||
|
},
|
||
|
"vscode": {
|
||
|
"settings": {},
|
||
|
"extensions": [
|
||
|
"ms-python.python",
|
||
|
"ms-python.vscode-pylance"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
|
||
|
"postAttachCommand": {
|
||
|
"server": "streamlit run site.py --server.enableCORS false --server.enableXsrfProtection false"
|
||
|
},
|
||
|
"portsAttributes": {
|
||
|
"8501": {
|
||
|
"label": "Application",
|
||
|
"onAutoForward": "openPreview"
|
||
|
}
|
||
|
},
|
||
|
"forwardPorts": [
|
||
|
8501
|
||
|
]
|
||
|
}
|