Make chmod on ADDed files

Fixes #3979
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
Merge pull request #5911 from LK4D4/chmod_on_add_#3979

Make chmod on ADDed files