FILE / ScuroNeko/ActionRunners

go.Dockerfile

Исходный файл и его история в репозитории.
FILE f0527843bf6df84f9878c7d2e649e3de93bf580d
Files
ActionRunners/go.Dockerfile
T

17 lines
887 B
Docker

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}