diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2150d67 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "Streamlit Template from dev container", + "image": "ghcr.io/streamlit/basic-template:latest", + "customizations": { + "codespaces": { + "openFiles": [ + "README.md", + "streamlit_app.py" + ] + } + }, + "postAttachCommand": { + "server": "streamlit run streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false" + }, + "portsAttributes": { + "8501": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [ + 8501 + ] +} \ No newline at end of file diff --git a/.github/.devcontainer/devcontainer.json b/.github/.devcontainer/devcontainer.json new file mode 100644 index 0000000..933b1ef --- /dev/null +++ b/.github/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "Streamlit Template image build and push", + "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", + "customizations": { + "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