FROM golang:1.26.4@sha256:68cb6d68bed024785b69195b89af7ac7a444f27791435f98647edff595aa0479

RUN apt-get update && \
    apt-get install -y npm && \
    npm install -g npx cspell@latest

COPY scripts/devtools.sh /opt/devtools.sh

RUN set -e -x && \
    /opt/devtools.sh

ENV PATH=/go/bin:$PATH

ENV CGO_ENABLED 0
ENV GOPATH /go:/yq
