ARG USER_NAME=keil FROM scottyhardy/docker-wine:devel-8.4 ARG USER_NAME ARG KEIL_URL= ARG PACK_URL= ARG DEBUG= RUN \ apt-get update \ && apt-get upgrade -y \ && apt-get install -y \ dwm \ clangd \ gdb-multiarch \ htop \ inotify-tools \ python3 \ python-is-python3 \ python3-pip \ ssh \ vim \ xmlstarlet \ && { \ [ "$DEBUG" -eq 1 ] \ || true; \ } \ && rm -rf /var/lib/apt/lists/ RUN pip install pyocd COPY ./install-keil.sh . RUN \ ./install-keil.sh && \ rm ./install-keil.sh RUN \ apt-get update && \ ln -s "$(which true)" /usr/bin/depmod && \ wget https://github.com/stlink-org/stlink/releases/download/v1.7.0/stlink_1.7.0-1_amd64.deb --progress=bar:force:noscroll -O stlink.deb && \ dpkg -i stlink.deb; \ apt-get install --fix-broken -y && \ rm -rf /var/lib/apt/lists/ && \ rm stlink.deb RUN ln -s /usr/bin/gdb-multiarch /usr/bin/arm-none-eabi-gdb RUN echo "${USER_NAME} ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/keil COPY ./compile.sh /bin/st-compile RUN chmod a+x /bin/st-compile ENV USER_NAME=${USER_NAME}