Uh oh!
There was an error while loading. Please reload this page.
심사 데모 배포용 임시 Dockerfile 추가 - #166
Merged
Merged
Conversation
fowoco/infra Deployment Plan에 맞춰 PR #99를 최신 main 기준으로 다시 올림 (그 브랜치가 오래된 커밋 기준이라 새로 열었음). - Vite build -> nginx:alpine 정적 서빙, SPA 라우팅용 nginx.conf - VITE_API_BASE_URL 빌드 인자 추가 (기본값 /api/v1 상대경로) — 배포 IP/도메인이 바뀌어도 이미지 재빌드 불필요. src/api/client.ts 기본값과 동일하게 맞춤 - node_modules/dist/.git 제외하는 .dockerignore 추가 - 로컬 docker build + 컨테이너 기동으로 정적 서빙·SPA 라우팅 확인함
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
뭘 했나
#99 대체함 — 그 브랜치가 지금 main 기준으로 너무 오래돼서(로그인 데모 하드코딩 시절) 그냥 최신 main 위에 새로 올렸음.
fowoco/infrawiki의 Deployment Plan에 있는 "client — Dockerfile에 빌드 인자 추가 필요" 항목 반영함.VITE_API_BASE_URL빌드 인자 추가 (기본값/api/v1상대경로) — 배포 IP/도메인 바뀌어도 이미지 재빌드 안 해도 됨.src/api/client.ts의 런타임 기본값이랑 맞춤.dockerignore추가 (node_modules/dist/.git제외 — 없으면 빌드 컨텍스트에 로컬 node_modules까지 다 들어감)docker build+ 컨테이너 띄워서/,/dashboard둘 다 200 뜨는 거 확인함 (SPA 라우팅 정상)참고
fowoco/infrak8s 매니페스트(04-client.yaml)가 이 이미지를ghcr.io/fowoco/client:latest로 기대하고 있음deploy.yml)는 infra 쪽에서 아직 팀 합의 전(KUBE_CONFIGorg secret 등록 필요)이라 이번엔 안 건드림테스트
docker build성공/,/dashboard응답 200 확인기존 #99는 이 PR 머지되면 닫을게요.