Spaces:
Runtime error
Runtime error
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Dockerfile β Hugging Face Spaces (Docker SDK) | |
| # ΰ°Άΰ±ΰ°°ΰ±ΰ°΅ΰ°Ύΰ°°ΰ°Ώ ΰ°Έΰ±ΰ°΅ β Tirumala Darshan Prediction | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM python:3.11-slim | |
| # Install Node.js for React build | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y --no-install-recommends nodejs && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # ββ Python dependencies (CPU-only torch + Chronos) ββ | |
| COPY requirements-hf.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements-hf.txt | |
| # ββ Copy project files ββ | |
| COPY . . | |
| # ββ Build React frontend ββ | |
| RUN cd client && npm install && npm run build && rm -rf node_modules | |
| # ββ HF Spaces uses port 7860 ββ | |
| ENV PORT=7860 | |
| ENV HF_HUB_OFFLINE=0 | |
| ENV TOKENIZERS_PARALLELISM=false | |
| EXPOSE 7860 | |
| # ββ Start production server ββ | |
| CMD ["python", "deploy.py", "--port", "7860", "--threads", "4"] | |