drone-plugin-golangci-lint/Dockerfile
2022-05-11 22:14:39 -04:00

17 lines
527 B
Docker

FROM alpine:latest
COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint
RUN apk update && \
apk add curl \
go && \
chmod +x /usr/local/bin/drone-plugin-golangci-lint && \
addgroup -S golangci-lint && adduser -S golangci-lint -G golangci-lint
USER golangci-lint
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
ENV PATH="/home/golangci-lint/go/bin:${PATH}"
ENTRYPOINT ["/usr/local/bin/drone-plugin-golangci-lint"]