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 && \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" \ > /etc/apt/sources.list.d/nodesource.list && \ apt-get update && \ apt-get install -y --no-install-recommends nodejs && \ go version && node -v && npm -v && \ 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}