telecom_api / Dockerfile
makhtar7186's picture
Update Dockerfile
2c58ef5 verified
raw
history blame contribute delete
619 Bytes
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"]