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
|
WORKDIR /app/wokwi-libs/wokwi-elements
|
||||||
RUN npm install --ignore-scripts && npm run build
|
RUN npm install --ignore-scripts && npm run build
|
||||||
|
|
||||||
# Build frontend
|
# Build frontend and generate metadata
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY frontend/ frontend/
|
COPY frontend/ frontend/
|
||||||
COPY scripts/ scripts/
|
COPY scripts/ scripts/
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
RUN npm install --ignore-scripts \
|
# We need tsx available in the path for the metadata script
|
||||||
&& npm run build
|
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 ----
|
# ---- Stage 2: Final Production Image ----
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue