Back to NPM but use ignore scripts and rebuild.

This commit is contained in:
SergeantPanda 2025-04-30 19:21:22 -05:00
parent 3381cb8695
commit 7a67479e38

View file

@ -44,9 +44,9 @@ RUN cd /app && \
FROM node:20-slim AS frontend-builder
WORKDIR /app/frontend
COPY --from=builder /app /app
RUN corepack enable && corepack prepare yarn@stable --activate && \
yarn install && \
yarn build && \
RUN npm install --ignore-scripts && \
npm rebuild && \
npm run build && \
find . -maxdepth 1 ! -name '.' ! -name 'dist' -exec rm -rf '{}' \;
FROM python:3.13-slim