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 ----