From dd26a656d13be6f1fe8467d7d29113a7f7dc5784 Mon Sep 17 00:00:00 2001 From: Ashwath Date: Fri, 7 Nov 2025 16:40:36 +0530 Subject: [PATCH] Add: Docker run instructions (no VS Code) to README --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 0349143d..3e26465b 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,32 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +--- + +## 🐳 Running with Docker (without VS Code) + +If you prefer to run this sample using Docker directly, you can use the same base image defined in `.devcontainer/devcontainer.json`. + +**Run the container:** +```bash +docker run -it --rm \ + -v $(pwd):/workspace \ + -w /workspace \ + -p 9000:9000 \ + mcr.microsoft.com/devcontainers/python:3.9 bash +``` + +Inside the container, install dependencies and run the app: +```pip install -r requirements.txt +python -m flask run --host 0.0.0.0 --port 9000 --no-debugger --no-reload +``` + +Then open your browser at http://localhost:9000 + to see it running. + +This gives you the same Python 3.9 environment used by Dev Containers, but using plain Docker. + + ## License Copyright © Microsoft Corporation All rights reserved.