Initial commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user