RUN sed -i 's/GNU bash, version (3\\\.\[1-9\]|4)/GNU bash, version (3.[1-9]|4|5)/g' modules/sdk/crosstool-NG/configure.ac; mkdir -p modules/sdk/crosstool-NG/.build/tarballs; wget https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz -O modules/sdk/crosstool-NG/.build/tarballs/expat-2.1.0.tar.gz
RUNcd modules/sdk;exportCT_EXPERIMENTAL=y;exportCT_ALLOW_BUILD_AS_ROOT=y;exportCT_ALLOW_BUILD_AS_ROOT_SURE=y; make standalone=y -j$(nproc); wget -N https://raw.githubusercontent.com/espressif/esptool/master/esptool.py -O xtensa-lx106-elf/bin/esptool.py
RUN apt remove --purge -y python2 && apt install -y make python3 python3-serial python-is-python3 perl
ENVPATH=/modules/sdk/xtensa-lx106-elf/bin:$PATH
>>>>>>> 94c54ac (add Dockerfile for build environment)