14 lines
388 B
Docker
14 lines
388 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY rag_api/requirements.txt /app/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu torch==2.7.0 && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY rag_api/app /app/app
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|