mirror of
https://github.com/guggero/chantools
synced 2024-11-18 21:26:23 +00:00
551e2a056a
Remove deprecated and deactivated linters from .golangci.yml. Ignore too noisy linters: protogetter, depguard, mnd. Fix linter warnings. Use timeout instead of deadline in .golangci.yml.
18 lines
422 B
Docker
18 lines
422 B
Docker
FROM golang:1.22.3-bookworm
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
|
ENV GOFLAGS="-buildvcs=false"
|
|
|
|
COPY . /tmp/tools
|
|
|
|
RUN cd /tmp \
|
|
&& mkdir -p /tmp/build/.cache \
|
|
&& mkdir -p /tmp/build/.modcache \
|
|
&& cd /tmp/tools \
|
|
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
|
|
&& chmod -R 777 /tmp/build/
|
|
|
|
WORKDIR /build
|