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
This commit is contained in:
William FH 2024-01-08 17:09:21 -08:00 committed by GitHub
parent 3a8ad90509
commit 04caf07dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ WORKDIR /code
COPY ./pyproject.toml ./README.md ./poetry.lock* ./ COPY ./pyproject.toml ./README.md ./poetry.lock* ./
COPY ./packages ./packages COPY ./package[s] ./packages
RUN poetry install --no-interaction --no-ansi --no-root RUN poetry install --no-interaction --no-ansi --no-root