2
0
mirror of https://github.com/guggero/chantools synced 2024-11-07 03:20:43 +00:00
chantools/tools/Dockerfile

18 lines
420 B
Docker
Raw Normal View History

2023-02-23 10:32:07 +00:00
FROM golang:1.19.4-buster
2022-07-18 07:24:17 +00:00
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
2023-02-23 10:32:07 +00:00
ENV GOFLAGS="-buildvcs=false"
2022-07-18 07:24:17 +00:00
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
2023-02-23 10:32:07 +00:00
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
2022-07-18 07:24:17 +00:00
&& chmod -R 777 /tmp/build/
WORKDIR /build