From d0474a5e59ff5fc1ec7411d8af0ca965bdef7304 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Fri, 6 Mar 2026 11:02:22 -0300 Subject: [PATCH] fix: explicit package installs for metadata generation --- Dockerfile.standalone | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.standalone b/Dockerfile.standalone index 0731e2c..d65fb68 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -22,13 +22,15 @@ COPY wokwi-libs/wokwi-elements/ wokwi-libs/wokwi-elements/ WORKDIR /app/wokwi-libs/wokwi-elements RUN npm install --ignore-scripts && npm run build -# Build frontend +# Build frontend and generate metadata WORKDIR /app COPY frontend/ frontend/ COPY scripts/ scripts/ WORKDIR /app/frontend -RUN npm install --ignore-scripts \ - && npm run build +# We need tsx available in the path for the metadata script +RUN npm install --ignore-scripts +# The metadata script uses eval so we must ensure it can run +RUN npm run build # ---- Stage 2: Final Production Image ----