@@ -12,38 +12,52 @@ RUN pip install --upgrade pip uv
1212ENV UV_SYSTEM_PYTHON=1
1313ENV UV_CACHE_DIR=/.cache/uv
1414
15+ # Install system dependencies required by ESP-IDF tools
16+ RUN apt-get update && apt-get install -y \
17+ git wget flex bison gperf cmake ninja-build ccache \
18+ libffi-dev libssl-dev dfu-util libusb-1.0-0 \
19+ && rm -rf /var/lib/apt/lists/*
20+
21+ # Install Python dependencies required by idf_tools.py
22+ RUN uv pip install --upgrade \
23+ click \
24+ setuptools \
25+ wheel \
26+ virtualenv \
27+ pyserial \
28+ platformio
29+
1530# Create all necessary directories with full permissions
1631RUN mkdir -p /.platformio \
1732 /.cache \
1833 /penv \
1934 /.local \
2035 /tmp \
36+ /root/.platformio \
2137 && chmod -R 777 /.platformio \
2238 /.cache \
2339 /penv \
2440 /.local \
2541 /tmp \
42+ /root \
2643 /usr/local/lib \
2744 /usr/local/bin
2845
29- # Install platformio using uv
30- RUN uv pip install --upgrade platformio
31-
3246# Additional permissions after PlatformIO installation
3347RUN chmod -R 777 /usr/local/lib/python*/site-packages/
3448
3549# Init project
3650COPY init_pio_tasmota /init_pio_tasmota
3751
38- # Install project dependencies
52+ # Install project dependencies with verbose output for debugging
3953RUN cd /init_pio_tasmota &&\
4054 platformio upgrade &&\
4155 pio pkg update &&\
42- pio run &&\
56+ pio run --verbose &&\
4357 cd ../ &&\
4458 rm -fr init_pio_tasmota &&\
4559 cp -r /root/.platformio / &&\
46- chmod -R 777 /.platformio /usr/local/lib /usr/local/bin / .cache /.local &&\
60+ chmod -R 777 /.platformio /.cache /.local &&\
4761 chmod -R 777 /usr/local/lib/python*/site-packages/
4862
4963COPY entrypoint.sh /entrypoint.sh
0 commit comments