production-rag-api / Dockerfile.api
akif07's picture
Separate API and Streamlit requirements to fix Streamlit Cloud build error on Python 3.14
3aa1fc4
Raw
History Blame Contribute Delete
412 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements_api.txt .
RUN pip install --no-cache-dir -r requirements_api.txt
COPY . .
ENV PYTHONUNBUFFERED=1 \
API_HOST=0.0.0.0 \
API_PORT=7860
EXPOSE 7860
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]