forked from baron/baron-sso
- Set CI=true in Dockerfiles and pnpm commands to avoid TTY issues - Use --no-frozen-lockfile in runtime scripts to allow lockfile updates during development/startup - Resolves #890
29 lines
676 B
Docker
29 lines
676 B
Docker
FROM node:lts
|
|
|
|
WORKDIR /workspace
|
|
|
|
# Set CI environment variable to true to avoid TTY issues with pnpm
|
|
ENV CI=true
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy workspace configs and common package
|
|
COPY common ./common
|
|
COPY adminfront ./adminfront
|
|
|
|
# Install dependencies for the workspace
|
|
RUN cd common && pnpm install --no-frozen-lockfile --ignore-scripts
|
|
|
|
# 프로덕션 서빙을 위한 serve 패키지 글로벌 설치
|
|
RUN npm install -g serve
|
|
|
|
WORKDIR /workspace/adminfront
|
|
|
|
# Vite 기본 포트
|
|
EXPOSE 5173
|
|
|
|
# 실행 스크립트: APP_ENV에 따라 개발 서버 또는 빌드 후 서빙
|
|
RUN chmod +x ./scripts/runtime-mode.sh
|
|
CMD ["sh", "./scripts/runtime-mode.sh"]
|