Skip to content

Commit 32bc3fd

Browse files
authored
Fix: 서버 실행 시 디렉터리 문제 해결
Fix: 서버 실행 시 디렉터리 문제 해결
2 parents 21222c7 + 9e89e1f commit 32bc3fd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ COPY --from=builder /app/package.json ./package.json
2424
COPY --from=builder /app/next.config.mjs ./next.config.mjs
2525

2626
EXPOSE 3000
27-
CMD ["npm", "start"]
27+
CMD ["npm", "run", "start"]
28+

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
environment:
1111
NODE_ENV: production
1212
volumes:
13-
- .:/app # 코드 변경 사항을 반영하려면 필요
14-
- /app/node_modules # 호스트와 컨테이너 간 충돌 방지
15-
working_dir: /app
16-
command: "npm start" # Next.js 프로덕션 서버 실행
13+
- .:/gdgoc-fe-app # 코드 변경 사항을 반영하려면 필요
14+
working_dir: /gdgoc-fe-app
15+
command: "npm run start"
16+

0 commit comments

Comments
 (0)