FROM registry.fedoraproject.org/fedora-toolbox:44

RUN rpm --import https://dl.espressif.com/dl/eim/eim.asc && curl -fsSL https://dl.espressif.com/dl/eim/rpm/eim.repo -o /etc/yum.repos.d/espressif-eim.repo

RUN dnf -y install gcc g++ make cmake ninja eza zsh \
	libusb1-devel jq \
	eim-cli python3-pip \
	libicu76 fontconfig dejavu-sans-fonts liberation-fonts libwayland-cursor libxkbcommon \
	arm-none-eabi-binutils-cs arm-none-eabi-gcc-cs arm-none-eabi-gcc-cs-c++ arm-none-eabi-newlib \
	&& dnf clean all

ENV PATH="/usr/bin:${PATH}"

LABEL org.opencontainers.image.title="dev-toolbx" \
      org.opencontainers.image.description="Custom toolbox image with EIM and some development tools preinstalled" \
      org.opencontainers.image.vendor="drath.cc" \
      org.opencontainers.image.source="https://git.drath.cc/drath/dev-toolbx"
