devcontainer.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
  2. // https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo
  3. {
  4. "name": "Hugo (Community)",
  5. "build": {
  6. "dockerfile": "Dockerfile",
  7. "args": {
  8. // Update VARIANT to pick hugo variant.
  9. // Example variants: hugo, hugo_extended
  10. // Rebuild the container if it already exists to update.
  11. "VARIANT": "hugo_extended",
  12. // Update VERSION to pick a specific hugo version.
  13. // Example versions: latest, 0.73.0, 0,71.1
  14. // Rebuild the container if it already exists to update.
  15. "VERSION": "latest",
  16. // Update NODE_VERSION to pick the Node.js version: 12, 14
  17. "NODE_VERSION": "14",
  18. }
  19. },
  20. // Set *default* container specific settings.json values on container create.
  21. "settings": {
  22. "html.format.templating": true,
  23. },
  24. // Add the IDs of extensions you want installed when the container is created.
  25. "extensions": [
  26. "bungcip.better-toml",
  27. "davidanson.vscode-markdownlint"
  28. ],
  29. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  30. "forwardPorts": [
  31. 1313
  32. ],
  33. // Use 'postCreateCommand' to run commands after the container is created.
  34. // "postCreateCommand": "uname -a",
  35. // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  36. "remoteUser": "node",
  37. "features": {
  38. "golang": "latest"
  39. }
  40. }