Files
aperture/tools/Dockerfile
Oliver Gugger 7a42fe1b32 multi: bump and adjust linter, fix issues
Not strictly necessary to fix the linter issues caused by the version
bump, but nice to have.
2023-11-28 12:48:22 -06:00

18 lines
422 B
Docker

FROM golang:1.21.4-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