git clone https://github.com/Check-Data-Out/velog-dashboard-v2-fe.git
cd velog-dashboard-v2-fe
pnpm install
NODE_ENV=development pnpm install
pnpm dev
pnpm lint
(lint only pages)pnpm lintTest
(lint only tests)pnpm format
(prettier)
pnpm test
(test all pages & components)
# 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