Spaces:
Runtime error
Runtime error
| # AlphaEngine API — suitable for Render, Fly.io, Railway, etc. | |
| FROM python:3.12-slim-bookworm | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt \ | |
| && pip install --index-url https://download.pytorch.org/whl/cpu torch==2.3.0 | |
| COPY . . | |
| EXPOSE 8000 | |
| # Respect platform-provided PORT (Render) while defaulting to 8000 locally. | |
| CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}"] | |