diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b69688f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "hostRequirements": { + "cpus": 4 + }, + "waitFor": "onCreateCommand", + "updateContentCommand": "pip install -r requirements.txt", + "postCreateCommand": "", + "postAttachCommand": { + "server": "flask --debug run" + }, + "portsAttributes": { + "5000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "customizations": { + "codespaces": { + "openFiles": [ + "templates/index.html" + ] + }, + "vscode": { + "extensions": [ + "ms-python.python" + ] + } + }, + "forwardPorts": [5000] + } + \ No newline at end of file