1
0

devcontainer.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "name": "tldr-pages",
  3. "image": "mcr.microsoft.com/devcontainers/base:ubuntu", // Use Microsoft's Ubuntu Base image for the dev container
  4. "features": { // Use Node, Python and GitHub CLI features in the dev container
  5. "ghcr.io/devcontainers/features/node:1": {},
  6. "ghcr.io/devcontainers/features/python:1": {},
  7. "ghcr.io/devcontainers/features/github-cli:1": {}
  8. },
  9. "privileged": false, // Run the container unprivileged
  10. "onCreateCommand": {
  11. "install-python-packages": "pip install -r requirements.txt", // Install Python dependencies in the dev container
  12. "install-node-packages": "npm install" // Install NPM dependencies in the dev container
  13. },
  14. "customizations": {
  15. "vscode": {
  16. "settings": {
  17. // Define suggested settings for the dev container
  18. "resmon.show.battery": false,
  19. "resmon.show.cpufreq": false
  20. },
  21. "extensions": [
  22. // Define suggested extensions to preinstall in the dev container
  23. "EditorConfig.EditorConfig",
  24. "ms-python.python",
  25. "ms-python.vscode-pylance",
  26. "ms-python.flake8",
  27. "GitHub.vscode-pull-request-github",
  28. "github.vscode-github-actions",
  29. "DavidAnson.vscode-markdownlint"
  30. ]
  31. }
  32. }
  33. }