Skip to content

Commit 5a561ae

Browse files
authored
Merge pull request #126 from github-samples/update-dev-container-definition
Update devcontainer configuration to use Debian base image and adjust features
2 parents b757c5a + f4c8fa7 commit 5a561ae

1 file changed

Lines changed: 17 additions & 24 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,36 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/python
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
33
{
4-
"name": "Python 3",
4+
"name": "Debian",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
6+
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
79
"features": {
810
"ghcr.io/devcontainers/features/node:1": {},
9-
"ghcr.io/schlich/devcontainer-features/playwright:0": {},
10-
"ghcr.io/devcontainers-extra/features/typescript:2": {}
11+
"ghcr.io/devcontainers/features/python:1": {},
12+
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
13+
"ghcr.io/schlich/devcontainer-features/playwright:0": {}
1114
},
1215
"postCreateCommand": "./scripts/setup-env.sh",
16+
"forwardPorts": [
17+
4321,
18+
5100
19+
],
20+
// Configure tool-specific properties.
1321
"customizations": {
1422
"vscode": {
1523
"extensions": [
16-
"ms-dotnettools.csharp",
17-
"GitHub.copilot",
18-
"GitHub.copilot-chat",
24+
"github.copilot",
25+
"github.copilot-chat",
26+
"ms-python.python",
1927
"ms-python.vscode-pylance",
2028
"svelte.svelte-vscode",
2129
"astro-build.astro-vscode"
2230
]
23-
}
31+
}
2432
},
2533

26-
// Features to add to the dev container. More info: https://containers.dev/features.
27-
// "features": {},
28-
29-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
30-
"forwardPorts": [
31-
4321,
32-
5100
33-
],
34-
35-
// Use 'postCreateCommand' to run commands after the container is created.
36-
// "postCreateCommand": "pip3 install --user -r requirements.txt",
37-
38-
// Configure tool-specific properties.
39-
// "customizations": {},
40-
4134
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
4235
// "remoteUser": "root"
4336
}

0 commit comments

Comments
 (0)