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