Skip to content

Commit

Permalink
Make packages optional (#15727)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hinthornw authored Jan 9, 2024
1 parent 3a8ad90 commit 04caf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/cli/langchain_cli/project_template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 04caf07

Please sign in to comment.