@@ -5,18 +5,19 @@ LABEL description="Docker Container with a complete build environment for Tasmot
55 maintainer="blakadder_" \
66 organization="https://github.com/tasmota"
77
8- # Disable pip root user warning
9- ENV PIP_ROOT_USER_ACTION=ignore
8+ # Install uv package manager
9+ RUN pip install --upgrade pip uv
1010
11- # Install platformio
12- RUN pip install --upgrade pip && \
13- pip install --upgrade platformio
11+ # Configure uv environment variables
12+ ENV UV_SYSTEM_PYTHON=1
13+ ENV UV_CACHE_DIR=/.cache/uv
1414
15- # global pip configuration
16- RUN mkdir -p /etc/pip && \
17- echo "[global]" > /etc/pip/pip.conf && \
18- echo "root-user-action = ignore" >> /etc/pip/pip.conf && \
19- echo "no-warn-script-location = true" >> /etc/pip/pip.conf
15+ # Install platformio using uv
16+ RUN uv pip install --upgrade platformio
17+
18+ # Create uv cache directory and set permissions
19+ RUN mkdir -p /.cache/uv /.local &&\
20+ chmod -R 777 /.cache /.local
2021
2122# Init project
2223COPY init_pio_tasmota /init_pio_tasmota
@@ -29,7 +30,6 @@ RUN cd /init_pio_tasmota &&\
2930 cd ../ &&\
3031 rm -fr init_pio_tasmota &&\
3132 cp -r /root/.platformio / &&\
32- mkdir /.cache /.local &&\
3333 chmod -R 777 /.platformio /usr/local/lib /usr/local/bin /.cache /.local &&\
3434 chmod -R 777 /usr/local/lib/python*/site-packages/
3535
0 commit comments