pcr_rag_v2 / Dockerfile
leofan's picture
Update docker file to install huggingface_hub
d7a6eef verified
raw
history blame
422 Bytes
FROM python:3.11-slim
RUN pip install poetry==1.6.1
RUN pip install huggingface_hub
RUN poetry config virtualenvs.create false
WORKDIR /code
COPY ./pyproject.toml ./README.md ./poetry.lock* ./
COPY ./packages ./packages
RUN poetry install --no-interaction --no-ansi --no-root
COPY ./app ./app
RUN poetry install --no-interaction --no-ansi
EXPOSE 7860
CMD exec uvicorn app.server:app --host 0.0.0.0 --port 7860