app/Dockerfile.lint

19 строки
364 B
Docker

ARG ALPINE_VERSION=3.10
ARG GO_VERSION=1.12.9
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION}
RUN apk add --no-cache \
curl \
git \
make \
coreutils
RUN GO111MODULE=on go get \
github.com/golangci/golangci-lint/cmd/golangci-lint@v1.16.0 \
&& rm -rf /go/src/* /go/pkg/*
WORKDIR /go/src/github.com/docker/app
ENV CGO_ENABLED=0
COPY . .