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 make cmake ninja libusb1-devel eim-cli python3-pip libicu76 eza && dnf clean all

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"
