Skip to content

Latest commit

Β 

History

History
49 lines (34 loc) Β· 1.29 KB

readme.md

File metadata and controls

49 lines (34 loc) Β· 1.29 KB

Velog Dashboard

μ‹€ν–‰

  • git clone https://github.com/Check-Data-Out/velog-dashboard-v2-fe.git
  • cd velog-dashboard-v2-fe
  • pnpm install
  • pnpm husky (husky μ„€μ •)
  • pnpm dev

λ¦°νŒ…

  • pnpm lint (lint only pages)
  • pnpm lintTest (lint only tests)
  • pnpm format (prettier)

ν…ŒμŠ€νŒ…

  • pnpm test (test all pages & components)

local μ—μ„œ docker image 생성, νƒœκΉ…, ν‘Έμ‹œ, ν…ŒμŠ€νŒ…κΉŒμ§€

# 1. λ§Œμ•½ μ½”λ“œ μˆ˜μ •ν–ˆκ³ , λΉŒλ“œλ₯Ό λ‘œμ»¬μ—μ„œ ν–ˆλ‹€λ©΄, λ˜λŠ” Dockerfile 을 μˆ˜μ •ν–ˆλ‹€λ©΄
docker build -t velog-dashboard-v2-fe:latest .

# 2. (docker hub)repo 에 push ν•˜κΈ°μ „ tag μ„ΈνŒ…
docker tag velog-dashboard-v2-fe:latest nuung/velog-dashboard-v2-fe:latest

# 3. push
docker push nuung/velog-dashboard-v2-fe:latest

# ======================================================== #
# 이후 local μ—μ„œ remote image 기반으둜 running testing
docker pull nuung/velog-dashboard-v2-fe:latest
docker run -p 3000:3000 nuung/velog-dashboard-v2-fe:latest

docker κ΄€λ ¨, 이미지 정리

# μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” λͺ¨λ“  이미지 정리
docker image prune -af

# λ³Όλ₯¨, μΊμ‹œ, μ»¨ν…Œμ΄λ„ˆ 포함 λ“± λͺ¨λ“  μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” λ¦¬μ†ŒμŠ€ 정리
docker system prune -af --volumes