(new): golangci-lint in go
This commit is contained in:
+4
-2
@@ -1,5 +1,5 @@
|
||||
FROM golang:1.26-bookworm
|
||||
|
||||
ARG GOLANGCI_LINT_VERSION=v2.11.4
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates curl gnupg bash git && \
|
||||
mkdir -p /etc/apt/keyrings && \
|
||||
@@ -12,4 +12,6 @@ RUN apt-get update && \
|
||||
go version && node -v && npm -v && \
|
||||
apt-get purge -y --auto-remove curl gnupg && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
|
||||
| sh -s -- -b /usr/local/bin ${GOLANGCI_LINT_VERSION}
|
||||
Reference in New Issue
Block a user