FROM golang:1.24.2-bookworm

WORKDIR /

RUN apt-get update && \
    apt-get install -y --fix-missing \
    build-essential \
    git \
    jq \
    kmod \
    fuse \
    libgtk-3-dev \
    libwebkit2gtk-4.0-dev \
    nsis \
    wget \
    curl \
    gnupg2 \
    lsb-release \
    libfuse-dev \
    libfuse2 \
    file \
    && rm -rf /var/lib/apt/lists/*

RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
    && apt-get install -y nodejs

RUN go install github.com/wailsapp/wails/v2/cmd/wails@latest

RUN wails doctor
