fix: explicit package installs for metadata generation

pull/10/head
David Montero Crespo 2026-03-06 11:02:22 -03:00
parent 8f0c431f8d
commit d0474a5e59
1 changed files with 5 additions and 3 deletions

View File

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