1
0
forked from baron/baron-sso

chore: 모노레포 구축에 따른 Dockerfile 빌드 컨텍스트 변경 및 pnpm 의존성 설치 지원

This commit is contained in:
2026-05-14 17:01:05 +09:00
parent c2a9e1044c
commit 3f957d7a9f
4 changed files with 42 additions and 24 deletions

View File

@@ -1,16 +1,22 @@
FROM node:lts FROM node:lts
WORKDIR /app WORKDIR /workspace
# 패키지 정보 복사 및 의존성 설치 # Install pnpm
COPY package*.json ./ RUN npm install -g pnpm
RUN npm ci
# Copy workspace configs and common package
COPY package.json ./
COPY common ./common
COPY adminfront ./adminfront
# Install dependencies for the workspace
RUN cd common && pnpm install
# 프로덕션 서빙을 위한 serve 패키지 글로벌 설치 # 프로덕션 서빙을 위한 serve 패키지 글로벌 설치
RUN npm install -g serve RUN npm install -g serve
# 소스 코드 복사 WORKDIR /workspace/adminfront
COPY . .
# Vite 기본 포트 # Vite 기본 포트
EXPOSE 5173 EXPOSE 5173

View File

@@ -1,16 +1,22 @@
FROM node:lts FROM node:lts
WORKDIR /app WORKDIR /workspace
# 패키지 정보 복사 및 의존성 설치 # Install pnpm
COPY package*.json ./ RUN npm install -g pnpm
RUN npm ci
# Copy workspace configs and common package
COPY package.json ./
COPY common ./common
COPY devfront ./devfront
# Install dependencies for the workspace
RUN cd common && pnpm install
# 프로덕션 서빙을 위한 serve 패키지 글로벌 설치 # 프로덕션 서빙을 위한 serve 패키지 글로벌 설치
RUN npm install -g serve RUN npm install -g serve
# 소스 코드 복사 WORKDIR /workspace/devfront
COPY . .
# Vite 기본 포트 # Vite 기본 포트
EXPOSE 5173 EXPOSE 5173

View File

@@ -49,8 +49,8 @@ services:
adminfront: adminfront:
build: build:
context: ./adminfront context: .
dockerfile: Dockerfile dockerfile: ./adminfront/Dockerfile
container_name: baron_adminfront container_name: baron_adminfront
env_file: env_file:
- .env - .env
@@ -70,8 +70,8 @@ services:
devfront: devfront:
build: build:
context: ./devfront context: .
dockerfile: Dockerfile dockerfile: ./devfront/Dockerfile
container_name: baron_devfront container_name: baron_devfront
env_file: env_file:
- .env - .env
@@ -91,8 +91,8 @@ services:
orgfront: orgfront:
build: build:
context: ./orgfront context: .
dockerfile: Dockerfile dockerfile: ./orgfront/Dockerfile
container_name: baron_orgfront container_name: baron_orgfront
env_file: env_file:
- .env - .env

View File

@@ -1,16 +1,22 @@
FROM node:lts FROM node:lts
WORKDIR /app WORKDIR /workspace
# 패키지 정보 복사 및 의존성 설치 # Install pnpm
COPY package*.json ./ RUN npm install -g pnpm
RUN npm ci
# Copy workspace configs and common package
COPY package.json ./
COPY common ./common
COPY orgfront ./orgfront
# Install dependencies for the workspace
RUN cd common && pnpm install
# 프로덕션 서빙을 위한 serve 패키지 글로벌 설치 # 프로덕션 서빙을 위한 serve 패키지 글로벌 설치
RUN npm install -g serve RUN npm install -g serve
# 소스 코드 복사 WORKDIR /workspace/orgfront
COPY . .
# Vite 기본 포트 # Vite 기본 포트
EXPOSE 5175 EXPOSE 5175