Skip to content

Conversation

@LeeCh0129
Copy link

πŸ“Œ λ³€κ²½ 사항 κ°œμš”

Docker λΉŒλ“œ μ‹œ λ°œμƒν•˜λŠ” TypeScript λͺ¨λ“ˆ 해석 μ—λŸ¬ ν•΄κ²°

✨ μš”μ•½

Docker λΉŒλ“œ κ³Όμ •μ—μ„œ 개발 μ˜μ‘΄μ„±μ„ ν¬ν•¨ν•˜λ„λ‘ μˆ˜μ •ν•˜μ—¬ TypeScript 컴파일이 μ •μƒμ μœΌλ‘œ μž‘λ™ν•˜λ„λ‘ ν–ˆμŠ΅λ‹ˆλ‹€.

πŸ“ 상세 λ‚΄μš©

Dockerfile μˆ˜μ •

  • npm ci --only=production β†’ npm ci
  • λΉŒλ“œ μ‹œ ν•„μš”ν•œ TypeScript와 개발 도ꡬ듀이 μ„€μΉ˜λ˜λ„λ‘ λ³€κ²½

문제 원인

  • Module not found: Can't resolve '@components/ThemeToggle' μ—λŸ¬ λ°œμƒ
  • production λͺ¨λ“œμ—μ„œ TypeScriptκ°€ μ„€μΉ˜λ˜μ§€ μ•Šμ•„ 경둜 별칭(@components) 해석 λΆˆκ°€
  • λ‘œμ»¬μ—μ„œλŠ” 정상 μž‘λ™ν•˜λ‚˜ Docker λΉŒλ“œμ—μ„œλ§Œ μ‹€νŒ¨

πŸ”— κ΄€λ ¨ 이슈

πŸ–ΌοΈ μŠ€ν¬λ¦°μƒ·

image

βœ… 체크리슀트

  • 브랜치 넀이밍 μ»¨λ²€μ…˜μ„ μ€€μˆ˜ν–ˆμŠ΅λ‹ˆλ‹€
  • 컀밋 μ»¨λ²€μ…˜μ„ μ€€μˆ˜ν–ˆμŠ΅λ‹ˆλ‹€
  • μ½”λ“œκ°€ ν”„λ‘œμ νŠΈμ˜ μŠ€νƒ€μΌ κ°€μ΄λ“œλΌμΈμ„ μ€€μˆ˜ν•©λ‹ˆλ‹€

πŸ’‘ μ°Έκ³  사항

  • κΆŒν•œ λ¬Έμ œλŠ” EC2μ—μ„œ 직접 ν•΄κ²° μ™„λ£Œ
  • μΆ”ν›„ multi-stage build둜 이미지 크기 μ΅œμ ν™” κ°€λŠ₯

@LeeCh0129 LeeCh0129 self-assigned this Jun 5, 2025
@LeeCh0129 LeeCh0129 added the πŸ›Fix 버그 μˆ˜μ • label Jun 5, 2025
Copy link
Contributor

@dkslel1225 dkslel1225 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

κ·Έλž˜λ„ dev ν¬ν•¨μœΌλ‘œ ν•΄κ²°λœλ‹€λ‹ˆ λ‹€ν–‰μ΄λ„€μš”!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

πŸ›Fix 버그 μˆ˜μ •

Projects

None yet

Development

Successfully merging this pull request may close these issues.

πŸš€ Deploy: AWS EC2 Docker 기반 CD νŒŒμ΄ν”„λΌμΈ ꡬ좕

3 participants