diff --git a/Dockerfile b/Dockerfile index 99dda85..f0e9eed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM golang:1.20 +FROM golang:1.21 + +ENV PATH=${PATH}:/root/.local/bin RUN apt update && \ - apt install -y python3 python3-pip ruby git && \ + apt install -y python3 python3-pip ruby git pipx && \ rm -rf /var/lib/apt/lists/* && \ go install github.com/lietu/go-pre-commit@latest && \ go install golang.org/x/tools/cmd/goimports@latest && \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2 && \ - pip install pre-commit + pipx install pre-commit