# HGZero UI/UX Prototype Deployment
# Nginx 기반 정적 파일 서빙

FROM nginx:1.25-alpine

# 메타데이터
LABEL maintainer="HGZero Team"
LABEL description="HGZero UI/UX Prototype"
LABEL version="1.0.0"

# 프로토타입 HTML 파일 복사 (img 폴더 포함 모든 파일)
COPY design/uiux/prototype/ /usr/share/nginx/html/

# nginx 설정 파일 복사 (커스텀 설정이 필요한 경우)
COPY deployment/uiux/nginx.conf /etc/nginx/conf.d/default.conf

# 포트 노출
EXPOSE 80

# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1

# nginx 실행
CMD ["nginx", "-g", "daemon off;"]
