Skip to content

Commit 740911a

Browse files
authored
Merge pull request #72 from GDSCINHA/develop
fix: 컨테이너 볼륨 설정 삭제
2 parents 0b81570 + 557dc89 commit 740911a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ RUN npm install
1010
# 이후 전체 파일 복사
1111
COPY . .
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+
# 빌드 결과 확인
1721
RUN ls -la /app
1822
RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
23+
RUN ls -la /app/out || echo "out 디렉토리가 없습니다"
1924

2025
# 2단계: 실행 환경
2126
FROM node:18
@@ -33,8 +38,9 @@ COPY --from=builder /app/node_modules ./node_modules
3338
COPY --from=builder /app/package.json ./package.json
3439
COPY --from=builder /app/next.config.mjs ./next.config.mjs
3540

36-
# 현재 디렉토리 확인
41+
# 실행환경 확인
3742
RUN ls -la /app
43+
RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
3844

3945
EXPOSE 3000
4046

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)