From ba8b56c647c214dde6008a320eced852fe8a82ee Mon Sep 17 00:00:00 2001 From: David Montero Date: Wed, 1 Apr 2026 07:45:47 +0200 Subject: [PATCH] fix: install ESP-IDF Python requirements in final Docker stage ESP-IDF 4.4.x requires specific package versions (reedsolo<=1.5.4, bitstring<4, pyparsing<2.4.0, kconfiglib==13.7.1, etc.) that conflict with newer defaults. Installing requirements.txt after copying ESP-IDF ensures the correct versions are used and cmake configure succeeds. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile.standalone | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile.standalone b/Dockerfile.standalone index 32b2618..20a43f2 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -160,6 +160,11 @@ COPY --from=espidf-builder /root/.espressif /root/.espressif ENV IDF_PATH=/opt/esp-idf ENV IDF_TOOLS_PATH=/root/.espressif +# Install ESP-IDF Python dependencies using the final image's Python +# The requirements.txt has version constraints required by ESP-IDF 4.4.x +RUN grep -v 'esp-windows-curses' /opt/esp-idf/requirements.txt \ + | pip install --no-cache-dir -r /dev/stdin + EXPOSE 80 CMD ["/app/entrypoint.sh"]