FROM espressif/idf:release-v5.5
RUN apt-get update && \
    apt-get install -y \
    udev \
    nodejs \
    containerd \
    ripgrep \
    fd-find \
    git \
    curl \
    zsh && \
    usermod -aG dialout ubuntu && \
    chsh -s /bin/zsh ubuntu
 # check the default user for this in the future

USER ubuntu
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && echo "source /opt/esp/entrypoint.sh" | tee -a /home/ubuntu/.zshrc
