gitlab-build-images/Dockerfile.golangci-lint-alpine
Hayley Swimelar 7ea0dd0be2 WIP: Add an image for golangci linting
In order to lint only the changes within a merge request, golangci
requires git to be installed. This image alleviates the need to
reinstall git on every CI job.

This image also includes a default `.golangci.yml` file in the hopes
of reducing duplicate work on the topic of golang conventions
at GitLab.

depends on: https://gitlab.com/gitlab-org/gitlab/merge_requests/20404
2019-11-20 15:47:48 -08:00

5 lines
227 B
Docker

FROM golangci/golangci-lint:v1.21-alpine
# git must be installed for golangci-lint's --new-from-rev flag to work.
RUN apk --no-cache add git
# Include a default .golangci.yml
COPY /scripts/.golangci.yml /golangci/.golangci.yml