Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 75f0c77

Browse files
committed
Testing dev containers
1 parent 30735b1 commit 75f0c77

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.devcontainer/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM golang:1.20.4

.devcontainer/devcontainer.json

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/go
33
{
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:0-1-bullseye"
7-
8-
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {},
10-
11-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12-
// "forwardPorts": [],
13-
14-
// Use 'postCreateCommand' to run commands after the container is created.
15-
// "postCreateCommand": "go version",
16-
17-
// Configure tool-specific properties.
18-
// "customizations": {},
19-
20-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21-
// "remoteUser": "root"
4+
"name": "MyGo",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
}
228
}

0 commit comments

Comments
 (0)