From 04caf07dee2e2843ab720e5b8f0c0e83d0b86a3e Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:09:21 -0800 Subject: [PATCH] Make packages optional (#15727) So we don't have to instruct people to modify the Dockerfile every time they delete the packages directory. See: https://stackoverflow.com/questions/70096208/dockerfile-copy-folder-if-it-exists-conditional-copy/70096420#70096420 Tested on a new repo --- libs/cli/langchain_cli/project_template/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cli/langchain_cli/project_template/Dockerfile b/libs/cli/langchain_cli/project_template/Dockerfile index a129cd0b50a..bbdeea13b65 100644 --- a/libs/cli/langchain_cli/project_template/Dockerfile +++ b/libs/cli/langchain_cli/project_template/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /code COPY ./pyproject.toml ./README.md ./poetry.lock* ./ -COPY ./packages ./packages +COPY ./package[s] ./packages RUN poetry install --no-interaction --no-ansi --no-root