Spaces:
Sleeping
Sleeping
| FROM nginx:1.27-alpine AS runtime | |
| # Serve SPA from port 7860 (Hugging Face Spaces default for Docker apps) | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| COPY dist /usr/share/nginx/html | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | |
| CMD wget -q -O /dev/null http://127.0.0.1:7860/ || exit 1 | |
| CMD ["nginx", "-g", "daemon off;"] | |