Xteink-X4-crosspoint-reader/scripts/emulation/Dockerfile
2026-01-22 19:07:18 +01:00

26 lines
933 B
Docker

FROM debian:12
WORKDIR /root
ARG DEBIAN_FRONTEND=noninteractive
# Update container
RUN apt-get update && apt-get upgrade -y
# Install dependencies
RUN apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 \
libgcrypt20 libglib2.0-0 libpixman-1-0 libsdl2-2.0-0 libslirp0 -y
# Install ESP-IDF
ENV PATH="~/.local/bin:${PATH}"
RUN mkdir -p ~/esp && cd ~/esp && git clone --quiet --recursive https://github.com/espressif/esp-idf.git && ln -s /usr/bin/python3 /usr/bin/python
RUN cd ~/esp/esp-idf && export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets" && ./install.sh && /bin/bash -c "source ./export.sh"
# Install qemu
RUN cd ~/esp/esp-idf && python tools/idf_tools.py install qemu-riscv32
RUN echo "alias idf='source /root/esp/esp-idf/export.sh'" >> .bashrc
# Start from a Bash prompt
CMD [ "/bin/bash" ]