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
pull/15155/head^2
William FH 9 months ago committed by GitHub
parent 3a8ad90509
commit 04caf07dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save