(new): golangci-lint in go
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
FROM golang:1.26-alpine
|
FROM golang:1.26-alpine
|
||||||
|
ARG GOLANGCI_LINT_VERSION=v2.11.4
|
||||||
RUN apk add --no-cache nodejs npm bash git ca-certificates
|
RUN apk add --no-cache nodejs npm bash git ca-certificates
|
||||||
|
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
|
||||||
|
| sh -s -- -b /usr/local/bin ${GOLANGCI_LINT_VERSION}
|
||||||
+3
-1
@@ -1,5 +1,5 @@
|
|||||||
FROM golang:1.26-bookworm
|
FROM golang:1.26-bookworm
|
||||||
|
ARG GOLANGCI_LINT_VERSION=v2.11.4
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl gnupg bash git && \
|
apt-get install -y --no-install-recommends ca-certificates curl gnupg bash git && \
|
||||||
mkdir -p /etc/apt/keyrings && \
|
mkdir -p /etc/apt/keyrings && \
|
||||||
@@ -13,3 +13,5 @@ RUN apt-get update && \
|
|||||||
apt-get purge -y --auto-remove curl gnupg && \
|
apt-get purge -y --auto-remove curl gnupg && \
|
||||||
apt-get clean && \
|
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