langchain/libs/cli/langchain_cli/project_template/Dockerfile

22 lines
391 B
Docker
Raw Normal View History

2023-11-13 15:33:01 +00:00
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* ./
2023-11-13 15:33:01 +00:00
COPY ./package[s] ./packages
2023-11-13 15:33:01 +00:00
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