mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
https://stackoverflow.com/questions/78593700/langchain-community-langchain-packages-giving-error-missing-1-required-keywor
28 lines
556 B
Docker
28 lines
556 B
Docker
#
|
|
FROM python:3.12.3
|
|
|
|
# poetry
|
|
RUN pip install poetry
|
|
|
|
#
|
|
WORKDIR /usr/learnhouse/apps/api
|
|
|
|
# Copy poetry.lock* in case it doesn't exist in the repo
|
|
COPY ./poetry.lock* /usr/learnhouse/
|
|
|
|
# Copy project requirement files here to ensure they will be cached.
|
|
COPY pyproject.toml /usr/learnhouse/
|
|
|
|
# Install poetry
|
|
RUN pip install --upgrade pip \
|
|
&& pip install poetry \
|
|
&& poetry config virtualenvs.create false
|
|
|
|
# Install project dependencies.
|
|
RUN poetry install --no-interaction --no-ansi
|
|
|
|
#
|
|
COPY ./ /usr/learnhouse
|
|
|
|
#
|
|
CMD ["python" , "app.py"]
|