amkyawdev's picture
feat: Add Chat endpoint and fix Dockerfile
08836c5 verified
Raw
History Blame Contribute Delete
454 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src/ ./src/
# Expose port
EXPOSE 7860
# Run the application
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "7860"]