fix: 배포 때 예전 빌드 파일을 2주 남김 — 열어 둔 탭(폰 크롬)과 구글 렌더가 예전 HTML 로 지워진 파일을 불러 '날씨 불러오는 중'에서 멈추던 것

This commit is contained in:
minaChoi committed 2026-10-30 09:00:39 +09:00
1 parent 48299e3ac5
commit 4b321c1991
4 files changed
+12

No files matched your search

+4
View File
@@ -25,3 +25,7 @@ dist-ssr
dist-toss
*.ait
# deploy.sh 가 모아 두는 지난 배포 빌드 파일
.old-assets/*
!.old-assets/.gitkeep
View File
Whitespace-only changes.
+2
View File
@@ -32,6 +32,8 @@ RUN npm run build
# ---- prod: nginx로 정적 파일 제공 ----
FROM nginx:1.29-alpine AS prod
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
# 지난 배포의 빌드 파일(deploy.sh 가 모아 둠). 이미 열어 둔 탭·구글 렌더가 예전 HTML 로 예전 파일을 불러도 뜨게 한다
COPY frontend/.old-assets/ /usr/share/nginx/html/assets/
COPY --from=build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s CMD wget -q -O /dev/null http://127.0.0.1/ || exit 1