Spaces:
Sleeping
Sleeping
File size: 619 Bytes
db6a925 2c58ef5 db6a925 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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"]
|