devcontainer.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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 and Python features in the dev container
  5. "ghcr.io/devcontainers/features/node:1": {},
  6. "ghcr.io/devcontainers/features/python:1": {}
  7. },
  8. "privileged": false, // Run the container unprivileged
  9. "onCreateCommand": {
  10. "install-python-packages": "pip install -r requirements.txt", // Install Python dependencies in the dev container
  11. "install-node-packages": "npm install" // Install NPM dependencies in the dev container
  12. },
  13. "customizations": {
  14. "vscode": {
  15. "settings": {
  16. // Define suggested settings for the dev container
  17. "resmon.show.battery": false,
  18. "resmon.show.cpufreq": false
  19. },
  20. "extensions": [
  21. // Define suggested extensions to preinstall in the dev container
  22. "EditorConfig.EditorConfig",
  23. "ms-python.python",
  24. "ms-python.vscode-pylance",
  25. "ms-python.flake8",
  26. "GitHub.vscode-pull-request-github",
  27. "github.vscode-github-actions",
  28. "DavidAnson.vscode-markdownlint"
  29. ]
  30. }
  31. }
  32. }