Ultimate Go development container for Visual Studio Code
docker build -f alpine.Dockerfile -t annidy/godevcontainer .
- Setup your configuration files
-
With style 💯
docker run -v -it "`pwd`:/root" --privileged --name my_repo annidy/godevcontainer
-
Or manually: download this repository and put the .devcontainer directory in your project.
-
- If you have a .vscode/settings.json, eventually move the settings to .devcontainer/devcontainer.json in the
"settings"
section as .vscode/settings.json take precedence over the settings defined in .devcontainer/devcontainer.json. - Open the command palette in Visual Studio Code (CTRL+SHIFT+P) and select
Remote-Containers: Open Folder in Container...
and choose your project directory