Skip to content

Commit

Permalink
Feature: Replace Gitpod by Codespace #2702
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf committed Dec 13, 2023
1 parent 57b2117 commit f2ec9c9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000],

"waitFor": "onCreateCommand",
"updateContentCommand": "pip3 install --user -r requirements.txt",

"postAttachCommand": {
"server": "mkdocs serve"
},

"portsAttributes": {
"8000": {
"label": "Doc",
"onAutoForward": "openPreview"
}
},

"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

0 comments on commit f2ec9c9

Please sign in to comment.