-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ARG GO_VERSION=1.21 | ||
ARG ALPINE_VERSION=3.18 | ||
|
||
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} | ||
|
||
# Install packages and Go language server | ||
RUN apk add -q --update --progress --no-cache git sudo openssh-client bash make | ||
RUN go install golang.org/x/tools/gopls@latest 2>&1 && \ | ||
go install github.com/cweill/gotests/gotests@latest 2>&1 && \ | ||
go install github.com/fatih/gomodifytags@latest 2>&1 && \ | ||
go install github.com/josharian/impl@latest 2>&1 && \ | ||
go install github.com/haya14busa/goplay/cmd/goplay@latest 2>&1 && \ | ||
go install github.com/go-delve/delve/cmd/dlv@latest 2>&1 && \ | ||
go install honnef.co/go/tools/cmd/staticcheck@latest 2>&1 | ||
|
||
# Install additional tools | ||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"dockerFile": "Dockerfile", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"golang.go", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode.makefile-tools" | ||
], | ||
"settings": { | ||
"go.useLanguageServer": true | ||
} | ||
} | ||
} | ||
} |