# Production stage only - use local build FROM nginx:alpine # nginx 설정 복사 COPY nginx.conf /etc/nginx/conf.d/default.conf # SSL 인증서 복사 COPY ssl/server.crt /etc/nginx/ssl/server.crt COPY ssl/server.key /etc/nginx/ssl/server.key # 로컬에서 빌드된 파일 복사 COPY build /usr/share/nginx/html # HTTP 및 HTTPS 포트 노출 EXPOSE 80 443 CMD ["nginx", "-g", "daemon off;"]