pcr_rag_v2 / Dockerfile
leofan's picture
Update Dockerfile
ff3f41d verified
raw
history blame
511 Bytes
FROM python:3.11-slim
RUN pip install poetry==1.6.1
RUN poetry config virtualenvs.create false
WORKDIR /code
COPY ./requirements.txt ./pyproject.toml ./README.md ./poetry.lock* ./
COPY ./packages ./packages
RUN poetry install --no-interaction --no-ansi --no-root
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY ./app ./app
RUN poetry install --no-interaction --no-ansi
COPY ./langserve_index ./langserve_index
EXPOSE 7860
CMD exec uvicorn app.server:app --host 0.0.0.0 --port 7860