fix: explicit package installs for metadata generation
parent
8f0c431f8d
commit
d0474a5e59
|
|
@ -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 ----
|
||||
|
|
|
|||
Loading…
Reference in New Issue