Spaces:
Sleeping
Sleeping
| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Set working directory | |
| WORKDIR /app | |
| RUN python -m pip install --upgrade pip | |
| # Copy requirements and install dependencies | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy bot_telegram.py | |
| COPY app.py . | |
| COPY rag_core.py . | |
| # Copy chroma_storage directory | |
| COPY chroma_storage ./chroma_storage | |
| # Expose any ports if needed (Telegram bot uses polling, no ports needed) | |
| COPY --chown=user . /app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |