gitea源码

devcontainer.json 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "name": "Gitea DevContainer",
  3. "image": "mcr.microsoft.com/devcontainers/go:1.25-trixie",
  4. "containerEnv": {
  5. // override "local" from packaged version
  6. "GOTOOLCHAIN": "auto"
  7. },
  8. "features": {
  9. // installs nodejs into container
  10. "ghcr.io/devcontainers/features/node:1": {
  11. "version": "latest"
  12. },
  13. "ghcr.io/devcontainers/features/git-lfs:1.2.5": {},
  14. "ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
  15. "ghcr.io/devcontainers/features/python:1": {
  16. "version": "3.13"
  17. },
  18. "ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
  19. },
  20. "customizations": {
  21. "vscode": {
  22. "settings": {},
  23. // same extensions as Gitpod, should match /.gitpod.yml
  24. "extensions": [
  25. "editorconfig.editorconfig",
  26. "dbaeumer.vscode-eslint",
  27. "golang.go",
  28. "stylelint.vscode-stylelint",
  29. "DavidAnson.vscode-markdownlint",
  30. "Vue.volar",
  31. "ms-azuretools.vscode-docker",
  32. "vitest.explorer",
  33. "cweijan.vscode-database-client2",
  34. "GitHub.vscode-pull-request-github",
  35. "Azurite.azurite"
  36. ]
  37. }
  38. },
  39. "portsAttributes": {
  40. "3000": {
  41. "label": "Gitea Web",
  42. "onAutoForward": "notify"
  43. }
  44. },
  45. "postCreateCommand": "make deps"
  46. }