良好的方法依赖外部文件(Dropbox)在公共存储库?

我有一个项目的Docker存储库。 该项目的结构如下所示:

在这里输入图像说明

我知道,如果我尝试在/development/php7.1.2-mongodb/app/Dockerfile ADD ../../../helpers/functions.shForbidden path outside the build context抛出错误的Forbidden path outside the build context , t想要在每个文件夹中有functions.sh文件。

所以我的解决scheme是:

 ADD https://www.dropbox.com/s/c913p83c11unl8x/functions.sh?dl=1 /home/helpers/ 

但这是一个好方法吗? 因为我的存储库是公开的,用户正在使用它。

docker-compose.yml更改上下文被排除在外,因为我在Dockerfile集线器上创build自动构build时只使用Dockerfile