| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y git nodejs npm curl && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN git clone --depth 1 https://github.com/presenton/presenton.git . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN cd frontend && npm install && npm run build | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |