FROM debian:bookworm-slim

RUN apt update
RUN apt install -y \
    wget \
    tar
    
RUN wget "https://cdn.gowinsemi.com.cn/Gowin_V1.9.11.03_Education_Linux.tar.gz" -O gowin.tar.gz
RUN tar --exclude='Programmer/doc/*' -xvzf gowin.tar.gz
RUN rm -f IDE/lib/libfreetype.so.6
RUN rm -f gowin.tar.gz

RUN apt install -y \
    bash \
    libgl1 \
    libnss3 \
    libxcomposite1 \
    libxdamage1 \
    libxrandr2 \
    libxtst6 \
    libfreetype6 \
    libfontconfig1 \
    libxkbcommon0 \
    libdbus-1-3 \
    libasound2 \
    libgssapi-krb5-2 \
    libglib2.0-0
