File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,17 @@ RUN npm install
1010# 이후 전체 파일 복사
1111COPY . .
1212
13- # 동적 배포를 위한 빌드만 실행 (export 없이)
14- RUN npm run build
13+ # next.config.mjs 확인
14+ RUN cat next.config.mjs
1515
16- # 빌드 결과물 확인
16+ # 빌드 실행 (output: export가 있는지 확인)
17+ # 명시적으로 next build 명령 사용
18+ RUN npx next build
19+
20+ # 빌드 결과 확인
1721RUN ls -la /app
1822RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
23+ RUN ls -la /app/out || echo "out 디렉토리가 없습니다"
1924
2025# 2단계: 실행 환경
2126FROM node:18
@@ -33,8 +38,9 @@ COPY --from=builder /app/node_modules ./node_modules
3338COPY --from=builder /app/package.json ./package.json
3439COPY --from=builder /app/next.config.mjs ./next.config.mjs
3540
36- # 현재 디렉토리 확인
41+ # 실행환경 확인
3742RUN ls -la /app
43+ RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
3844
3945EXPOSE 3000
4046
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ services:
99 - " 3000:3000"
1010 environment :
1111 NODE_ENV : production
12- volumes :
13- - .:/app
14- - /app/node_modules
1512 working_dir : /app
1613 command : " npm run start"
1714
You can’t perform that action at this time.
0 commit comments