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/go
1
3
{
2
- "name" : " Hugo (Community)" ,
3
- "build" : {
4
- "dockerfile" : " Dockerfile" ,
5
- "args" : {
6
- // Update VARIANT to pick hugo variant.
7
- // Example variants: hugo, hugo_extended
8
- // Rebuild the container if it already exists to update.
9
- "VARIANT" : " hugo_extended" ,
10
- // Update VERSION to pick a specific hugo version.
11
- // Example versions: latest, 0.73.0, 0,71.1
12
- // Rebuild the container if it already exists to update.
13
- "VERSION" : " latest" ,
14
- // Update NODE_VERSION to pick the Node.js version: 12, 14
15
- "NODE_VERSION" : " 14"
16
- }
4
+ "name" : " Go" ,
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image" : " mcr.microsoft.com/devcontainers/go:1-bullseye" ,
7
+
8
+ // Features to add to the dev container. More info: https://containers.dev/features.
9
+ "features" : {
10
+ "ghcr.io/devcontainers/features/hugo:1" : {
11
+ "extended" : true
12
+ },
13
+ "ghcr.io/devcontainers/features/node:1" : {}
17
14
},
15
+
16
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
17
+ "forwardPorts" : [
18
+ 1313
19
+ ],
20
+
21
+ // Use 'postCreateCommand' to run commands after the container is created.
22
+ "postCreateCommand" : " cd exampleSite && npm ci" ,
23
+
18
24
19
25
// Configure tool-specific properties.
20
26
"customizations" : {
33
39
}
34
40
},
35
41
36
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
37
- "forwardPorts" : [
38
- 1313
39
- ],
40
-
41
- // Use 'postCreateCommand' to run commands after the container is created.
42
- "postCreateCommand" : " npm ci && git submodule update --init --recursive" ,
43
-
44
- // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
45
- "remoteUser" : " node" ,
46
- "features" : {
47
- "ghcr.io/devcontainers/features/sshd:1" : {
48
- "version" : " latest"
49
- }
50
- }
51
- }
42
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
43
+ // "remoteUser": "root"
44
+ }
0 commit comments