2024-06-01 19:41:35 +00:00
|
|
|
FROM golang:1.22-alpine
|
2022-05-12 02:14:39 +00:00
|
|
|
|
|
|
|
COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint
|
|
|
|
|
|
|
|
RUN apk update && \
|
2024-06-01 19:41:35 +00:00
|
|
|
apk add curl && \
|
2022-05-12 02:14:39 +00:00
|
|
|
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"]
|