2021-12-12 02:57:20 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
|
2024-04-19 11:43:36 -07:00
|
|
|
FROM docker.io/golang:1.21.9-bullseye@sha256:311468bffa9fa4747a334b94e6ce3681b564126d653675a6adc46698b2b88d35
|
2021-08-30 11:40:38 -07:00
|
|
|
|
|
|
|
RUN useradd -u 1000 -U -m -d /home/lint lint
|
|
|
|
USER 1000
|
|
|
|
WORKDIR /home/lint
|
|
|
|
|
2022-06-21 12:18:16 -07:00
|
|
|
# install goimports
|
|
|
|
RUN go install golang.org/x/tools/cmd/goimports@latest
|
2021-08-30 11:40:38 -07:00
|
|
|
|
2022-06-21 12:18:16 -07:00
|
|
|
# install golangci-lint
|
|
|
|
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
|
2023-05-02 11:19:23 -07:00
|
|
|
sh -s -- -b $(go env GOPATH)/bin v1.52.2
|