This repository has been archived on 2026-03-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pre-commit/Dockerfile
T
argoyle 7e5081c587 chore(deps): bump golang from 1.21 to 1.22
Bumps golang from 1.21 to 1.22.
2024-02-08 00:50:26 +00:00

12 lines
452 B
Docker

FROM golang:1.22
ENV PATH=${PATH}:/root/.local/bin
RUN apt update && \
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 && \
pipx install pre-commit