devcontainer.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // 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/anaconda
  3. {
  4. "name": "Anaconda (Python 3)",
  5. "build": {
  6. "context": "..",
  7. "dockerfile": "Dockerfile"
  8. },
  9. "features": {
  10. "ghcr.io/dhoeric/features/act:1": {},
  11. "ghcr.io/devcontainers/features/node:1": {
  12. "nodeGypDependencies": true,
  13. "version": "lts"
  14. },
  15. "ghcr.io/devcontainers-contrib/features/npm-package:1": {
  16. "package": "typescript",
  17. "version": "latest"
  18. },
  19. "ghcr.io/devcontainers/features/docker-in-docker:2": {
  20. "moby": true,
  21. "azureDnsAutoDetection": true,
  22. "installDockerBuildx": true,
  23. "version": "latest",
  24. "dockerDashComposeVersion": "v2"
  25. }
  26. },
  27. "customizations": {
  28. "vscode": {
  29. "extensions": [
  30. "ms-python.pylint",
  31. "GitHub.copilot",
  32. "ms-python.python"
  33. ]
  34. }
  35. },
  36. "postStartCommand": "cd api && pip install -r requirements.txt",
  37. "postCreateCommand": "cd web && npm install"
  38. // Features to add to the dev container. More info: https://containers.dev/features.
  39. // "features": {},
  40. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  41. // "forwardPorts": [],
  42. // Use 'postCreateCommand' to run commands after the container is created.
  43. // "postCreateCommand": "python --version",
  44. // Configure tool-specific properties.
  45. // "customizations": {},
  46. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  47. // "remoteUser": "root"
  48. }