Separate steps to debug failed builds

This commit is contained in:
SergeantPanda 2025-09-27 17:28:34 -05:00
parent 70aaa2a04c
commit 4a4d93767e

View file

@ -7,9 +7,14 @@ ARG BASE_TAG=base
FROM node:20 AS frontend-builder
WORKDIR /app/frontend
COPY ./frontend /app/frontend
RUN corepack enable && corepack prepare yarn@stable --activate && \
yarn install && yarn build && \
rm -rf node_modules .cache
RUN corepack enable && corepack prepare yarn@stable --activate
RUN yarn install
RUN yarn build
RUN rm -rf node_modules .cache
# --- Redeclare build arguments for the next stage ---
ARG REPO_OWNER