Skip to content

Commit fea768c

Browse files
authored
Update Dockerfile
1 parent 5e2b0b3 commit fea768c

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

Dockerfile

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,52 @@ RUN pip install --upgrade pip uv
1212
ENV UV_SYSTEM_PYTHON=1
1313
ENV 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
1631
RUN 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
3347
RUN chmod -R 777 /usr/local/lib/python*/site-packages/
3448

3549
# Init project
3650
COPY init_pio_tasmota /init_pio_tasmota
3751

38-
# Install project dependencies
52+
# Install project dependencies with verbose output for debugging
3953
RUN 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

4963
COPY entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)