1
0
forked from baron/baron-sso

fix(deploy): resolve frontend deployment failure by fixing workspace detection and dependency installation

This commit is contained in:
2026-06-05 08:58:18 +09:00
parent 5c46727fb5
commit d707cdf850
6 changed files with 87 additions and 45 deletions

View File

@@ -9,11 +9,12 @@ ENV CI=true
RUN corepack enable && corepack prepare pnpm@10.5.2 --activate
# Copy workspace configs and common package
COPY pnpm-workspace.yaml pnpm-lock.yaml ./
COPY common ./common
COPY adminfront ./adminfront
# Install dependencies for the workspace
RUN cd common && pnpm install --no-frozen-lockfile --ignore-scripts
RUN pnpm install --filter adminfront... --filter baron-sso... --no-frozen-lockfile --ignore-scripts
# 프로덕션 서빙을 위한 serve 패키지 글로벌 설치
RUN npm install -g serve