|
1 | 1 | { |
2 | | - "name": "HTML, CSS & JS", |
3 | | - "image": "mcr.microsoft.com/devcontainers/universal:2", |
| 2 | + "name": "Python Flask Development Container", |
| 3 | + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", |
4 | 4 | "features": { |
5 | | - "ghcr.io/devcontainers/features/node:1": { |
6 | | - "version": "lts" |
7 | | - }, |
8 | | - "ghcr.io/devcontainers/features/sqlite:1": {} |
| 5 | + "ghcr.io/devcontainers/features/python:1": {}, |
| 6 | + "ghcr.io/devcontainers/features/node:1": {} |
9 | 7 | }, |
10 | 8 | "hostRequirements": { |
11 | 9 | "cpus": 4 |
12 | 10 | }, |
13 | 11 | "waitFor": "onCreateCommand", |
14 | | - "updateContentCommand": "npm install", |
15 | | - "postCreateCommand": "", // Add setup scripts here if needed |
| 12 | + "updateContentCommand": "", |
| 13 | + "postCreateCommand": "pip install -r requirements_python.txt && npm install requirements_node.txt && apt-get clean && rm -rf /root/.cache/pip", |
| 14 | + "postStartCommand": "", // For commands to run each Codespace start |
16 | 15 | "customizations": { |
17 | 16 | "vscode": { |
18 | 17 | "settings": { |
19 | 18 | "files.autoSave": "onFocusChange", |
20 | 19 | "editor.formatOnPaste": true, |
21 | 20 | "editor.formatOnSave": true, |
22 | | - "editor.defaultFormatter": "esbenp.prettier-vscode", |
23 | | - "[python]": { |
24 | | - "editor.defaultFormatter": "ms-python.black-formatter" |
25 | | - }, |
26 | 21 | "editor.fontSize": 18, |
27 | 22 | "extensions.ignoreRecommendations": true, |
28 | 23 | "unwantedRecommendations": ["ms-python.vscode-python-envs"], |
|
42 | 37 | "chat.agent.enabled": false |
43 | 38 | }, |
44 | 39 | "extensions": [ |
45 | | - "McCarter.start-git-bash", |
46 | | - "yy0931.vscode-sqlite3-editor", |
47 | | - "medo64.render-crlf", |
| 40 | + "bierner.markdown-mermaid", |
| 41 | + "bierner.markdown-preview-github-styles", |
48 | 42 | "ecmel.vscode-html-css", |
49 | | - "ms-vscode.js-debug", |
50 | 43 | "esbenp.prettier-vscode", |
| 44 | + "GitHub.codespaces", |
| 45 | + "mathematic.vscode-pdf", |
| 46 | + "McCarter.start-git-bash", |
| 47 | + "mechatroner.rainbow-csv", |
| 48 | + "medo64.render-crlf", |
51 | 49 | "miramac.vscode-exec-node", |
| 50 | + "ms-python.black-formatter", |
| 51 | + "ms-python.debugpy", |
| 52 | + "ms-python.pylint", |
| 53 | + "ms-python.python", |
| 54 | + "ms-vscode.js-debug", |
52 | 55 | "oderwat.indent-rainbow", |
53 | | - "ritwickdey.LiveServer", |
54 | | - "mathematic.vscode-pdf", |
55 | | - "GitHub.codespaces", |
56 | 56 | "yahyabatulu.vscode-markdown-alert", |
57 | | - "bierner.markdown-preview-github-styles", |
58 | | - "mechatroner.rainbow-csv" |
| 57 | + "oderwat.indent-rainbow", |
| 58 | + "streetsidesoftware.code-spell-checker", |
| 59 | + "tal7aouy.icons", |
| 60 | + "yahyabatulu.vscode-markdown-alert", |
| 61 | + "yy0931.vscode-sqlite3-editor" |
59 | 62 | ] |
60 | 63 | } |
61 | 64 | }, |
| 65 | + "forwardPorts": [5000], // Add the port your Flask app runs on, or others as needed |
62 | 66 | "portsAttributes": { |
63 | 67 | "5000": { |
64 | | - "label": "Application", |
| 68 | + "label": "Flask App", |
65 | 69 | "onAutoForward": "openBrowser" |
66 | 70 | } |
67 | | - }, |
68 | | - "forwardPorts": [5000] |
| 71 | + } |
69 | 72 | } |
0 commit comments