mirror of
https://github.com/hwchase17/langchain
synced 2024-11-20 03:25:56 +00:00
c6937a2eb4
- **Description:** We need to update the Dockerfile for templates to also copy your README.md. This is because poetry requires that a readme exists if it is specified in the pyproject.toml
22 lines
389 B
Docker
22 lines
389 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN pip install poetry==1.6.1
|
|
|
|
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 8080
|
|
|
|
CMD exec uvicorn app.server:app --host 0.0.0.0 --port 8080
|