Files
aperture/tools/Dockerfile
ffranr 97dbfca77c lint: add codebase tools directory
Update golangci-lint: v1.18.0 --> v1.50.1
Linter was updated to fix internal panic which was probably caused by
the Golang update.

The tools directory contains helper programs for managing the health of
the codebase. The directory is based on the equivalent directory found
in the taro codebase at commit 64e9dc9ccadb9269a1985ce2ff03cfc3a83d0470
2023-01-27 12:36:23 +00:00

18 lines
457 B
Docker

FROM golang:1.19.2-buster
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build
WORKDIR /build