From b5a16be352327580d22c1f05c06f93a3e0951bee Mon Sep 17 00:00:00 2001 From: shreyaskn72 <60369972+shreyaskn72@users.noreply.github.com> Date: Wed, 30 Sep 2026 21:16:49 +0530 Subject: [PATCH 1/3] Update devcontainer.json --- .devcontainer/devcontainer.json | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eb22beb7c..87cf13866 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,31 +1,41 @@ { - "image": "mcr.microsoft.com/devcontainers/universal:2", + "name": "Python Dev", + + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + + "features": { + "ghcr.io/devcontainers/features/python:1": { + "version": "3.13" + } + }, + "hostRequirements": { "cpus": 4 }, - "waitFor": "onCreateCommand", - "updateContentCommand": "pip install -r requirements.txt", - "postCreateCommand": "", + + "postCreateCommand": "bash .devcontainer/postcreate.sh", + "postAttachCommand": { - "server": "flask --debug run" + "server": "flask --debug run --host=0.0.0.0" }, + + "forwardPorts": [5000], + "portsAttributes": { "5000": { "label": "Application", "onAutoForward": "openPreview" } }, + "customizations": { - "codespaces": { - "openFiles": [ - "templates/index.html" - ] - }, "vscode": { "extensions": [ "ms-python.python" ] } }, - "forwardPorts": [5000] + + "remoteUser": "vscode" } + From 813fb1cd07f29e86dd09f1633b7db3cc7994ad93 Mon Sep 17 00:00:00 2001 From: shreyaskn72 <60369972+shreyaskn72@users.noreply.github.com> Date: Wed, 30 Sep 2026 21:20:02 +0530 Subject: [PATCH 2/3] Update devcontainer.json --- .devcontainer/devcontainer.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 87cf13866..d425fc909 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,30 +12,30 @@ "hostRequirements": { "cpus": 4 }, - - "postCreateCommand": "bash .devcontainer/postcreate.sh", - + "waitFor": "onCreateCommand", + "updateContentCommand": "pip install -r requirements.txt", + "postCreateCommand": "", "postAttachCommand": { - "server": "flask --debug run --host=0.0.0.0" + "server": "flask --debug run" }, - - "forwardPorts": [5000], - "portsAttributes": { "5000": { "label": "Application", "onAutoForward": "openPreview" } }, - "customizations": { + "codespaces": { + "openFiles": [ + "templates/index.html" + ] + }, "vscode": { "extensions": [ "ms-python.python" ] } }, - - "remoteUser": "vscode" + "forwardPorts": [5000] } From b3eccc5f40d18b36a8e13c070e120fa2434f4724 Mon Sep 17 00:00:00 2001 From: shreyaskn72 Date: Wed, 30 Sep 2026 21:54:10 +0530 Subject: [PATCH 3/3] optimized image --- .devcontainer/devcontainer.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d425fc909..7bea8be52 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,13 +1,7 @@ { "name": "Python Dev", - "image": "mcr.microsoft.com/devcontainers/base:ubuntu", - - "features": { - "ghcr.io/devcontainers/features/python:1": { - "version": "3.13" - } - }, + "image": "mcr.microsoft.com/devcontainers/python:1-3.13-bookworm", "hostRequirements": { "cpus": 4