FROM golang:1.24.13-trixie ENV DEBIAN_FRONTEND=noninteractive # System dependencies required by Wails and WebKitGTK 4.1 RUN apt-get update && apt-get install -y \ build-essential \ pkg-config \ libgtk-3-dev \ libwebkit2gtk-4.1-dev \ libayatana-appindicator3-dev \ curl \ git \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Install Node.js 22 and npm RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* # Install Wails CLI RUN go install github.com/wailsapp/wails/v2/cmd/wails@v2.10.2 ENV PATH="/go/bin:${PATH}" WORKDIR /workspace ENV HOME=/tmp ENV GOCACHE=/tmp/go-build ENV GOMODCACHE=/tmp/go-mod ENV GOPATH=/tmp/go # Install Syft (SBOM generation) RUN curl -sSfL https://get.anchore.io/syft \ | sh -s -- -b /usr/local/bin # Install Grype (vulnerability scanning) RUN curl -sSfL https://get.anchore.io/grype \ | sh -s -- -b /usr/local/bin