diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2026-03-06 01:53:42 -0800 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2026-03-06 01:53:42 -0800 |
| commit | 1acf12b3c1c8ac7ccc7585763f9983294fac305d (patch) | |
| tree | 8a1248faf1b5453fbd0417106a22fca53bce8fb2 | |
| parent | c83f3aea31cd96479dfb1f5dc28eb54001c3aa21 (diff) | |
Added Dev Container Folder
| -rw-r--r-- | .devcontainer/devcontainer.json | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..19ff7d1 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "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-bookworm", + "customizations": { + "codespaces": { + "openFiles": [ + "README.md", + "app.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 app.py --server.enableCORS false --server.enableXsrfProtection false" + }, + "portsAttributes": { + "8501": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [ + 8501 + ] +}
\ No newline at end of file |
