프론트엔드 서버 기존 Nginx 구성에서 Caddy로 마이그레이션:
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m11s

- Nginx 설정 파일(`nginx.conf`) 제거 및 Caddy 설정 파일(`Caddyfile`) 추가.
- Dockerfile에서 Nginx 이미지 대신 Caddy 이미지 사용하도록 수정.
- 정적 파일 경로(`/usr/share/nginx/html` → `/srv`) 변경 및 관련 설정 업데이트.
- 정적 에셋 캐싱 및 SPA fallback 로직 Caddy에 맞게 재구성.
This commit is contained in:
hayato5246
2026-04-05 20:57:59 +09:00
parent 00ffc6b54c
commit 47bb040eb8
3 changed files with 16 additions and 46 deletions

View File

@@ -12,12 +12,12 @@ COPY . .
RUN npm run build
# ── 실행 스테이지 ──────────────────────────────────────────
FROM nginx:alpine
FROM caddy:alpine
# nginx 설정 복사
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Caddyfile 복사
COPY Caddyfile /etc/caddy/Caddyfile
# 빌드 결과물 복사
COPY --from=builder /app/build /usr/share/nginx/html
COPY --from=builder /app/build /srv
EXPOSE 80