Go development Docker image including golangci-lint, govulncheck, goimports, and sqlc
1.9K
A ready-to-use Go development image that bundles the official golang toolchain
with the linting, formatting, code-generation, and security tools you need for
everyday Go development and CI pipelines — no extra go install steps required.
🔗 Source & docs: https://github.com/jesusnoseq/golang-with-tools
| Tool | Description |
|---|---|
| go | The Go toolchain |
| make | Build automation |
| bash | Shell |
| golangci-lint | Go linter aggregator |
| goimports | Import formatter |
| sqlc | Type-safe SQL code generator |
| govulncheck | Vulnerability scanner |
Two flavors are published:
golang:*-alpinegolang:*), glibc, maximally compatibleCommon tags:
latest — newest build from main (alpine)latest-alpine, latest-trixie — newest build of each variant1.2.3-alpine, 1.2-alpine, 1-alpine — semver tags per variantgo<ver>-<variant>-lint<ver>-imports<ver>-sqlc<ver>-vuln<ver> — fully pinned tags# Pull
docker pull jesusnoseq/golang-with-tools:latest
# Interactive shell with your project mounted
docker run -it --rm -v "$(pwd)":/app jesusnoseq/golang-with-tools bash
# Run a single tool
docker run --rm -v "$(pwd)":/app jesusnoseq/golang-with-tools golangci-lint run ./...
docker run --rm -v "$(pwd)":/app jesusnoseq/golang-with-tools govulncheck ./...
jobs:
lint:
runs-on: ubuntu-latest
container: jesusnoseq/golang-with-tools:latest
steps:
- uses: actions/checkout@v4
- run: golangci-lint run ./...
- run: govulncheck ./...
/app — mount your code there.bash.MIT © Jesús Rodríguez Pérez
Content type
Image
Digest
sha256:7815a433a…
Size
146.1 MB
Last updated
10 days ago
docker pull jesusnoseq/golang-with-tools