# # License: Apache-2.0 # Copyright 2021 The LibreGraph Authors. # FROM golang:1.16.3-buster SHELL ["/bin/bash", "-o", "pipefail", "-c"] ARG GOLANGCI_LINT_TAG=v1.38.0 RUN curl -sfL \ https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ sh -s -- -b /usr/local/bin ${GOLANGCI_LINT_TAG} RUN GOBIN=/usr/local/bin go get -v \ github.com/tebeka/go2xunit \ && go clean -cache && rm -rf /root/go ENV DEBIAN_FRONTEND noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends \ build-essential \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* WORKDIR /build ENV GOCACHE=/tmp/go-build ENV GOPATH="" ENV HOME=/tmp CMD ["make", "DATE=reproducible"]