From f2b609a2ef08326a517ce11c30aa4f733baa40e4 Mon Sep 17 00:00:00 2001 From: jedarden Date: Tue, 14 Apr 2026 15:03:33 -0400 Subject: [PATCH] fix(ci): source IDF export.sh in firmware build stage espressif/idf entrypoint is not invoked in multi-stage builds, so idf.py is not in PATH. Sourcing export.sh activates the toolchain. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c36e634..acaa268 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,10 @@ FROM espressif/idf:v5.2 AS firmware-builder WORKDIR /project COPY firmware/ ./ +# Source export.sh to activate IDF toolchain (entrypoint is not called in build stages) # idf.py build produces build/spaxel-firmware.bin -RUN idf.py build +SHELL ["/bin/bash", "-c"] +RUN . $IDF_PATH/export.sh && idf.py build # Stage 2: Build the Go binary FROM golang:1.25-bookworm AS builder