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

COPY vscodium.repo /etc/yum.repos.d/vscodium.repo

RUN dnf -y install gcc g++ make cmake ninja eza zsh \
	libusb1-devel \
	eim-cli python3-pip \
	libicu76 fontconfig dejavu-sans-fonts liberation-fonts libwayland-cursor libxkbcommon codium jq \ 
	&& 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"
