Switch to yarn for building frontend.

This commit is contained in:
SergeantPanda 2025-04-30 19:14:18 -05:00
parent 2b44c122e7
commit 3381cb8695

View file

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