(new): golangci-lint in go

This commit is contained in:
2026-04-23 18:31:48 +03:00
parent be12b810ad
commit f0527843bf
2 changed files with 8 additions and 3 deletions
+3
View File
@@ -1,2 +1,5 @@
FROM golang:1.26-alpine
ARG GOLANGCI_LINT_VERSION=v2.11.4
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
View File
@@ -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 && \
@@ -13,3 +13,5 @@ RUN apt-get update && \
apt-get purge -y --auto-remove curl gnupg && \
apt-get clean && \
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}