问题描述 Step 2/7 : ADD xxx.jar ~/xxx/xxx.jar ADD failed: file not found in build context or excluded by .dockerignore: stat xxx.jar: file does not exist 解决方案 因为 Dockfile 文件和 jar 包不在同一个目录/文件夹下,所以只要保证它们 2 个在同一个文件夹下即可