如何在Docker中将文件夹路径作为运行参数传递

时间:2020-10-22 11:27:08

标签: c# docker containers

这是我的docker文件

ENV filePath = "C:\newfiles\Prepayment_DB.accdb"
    sourcePath = "C:\srcPath\"
    destPath = "C:\destPath\"
FROM mcr.microsoft.com/dotnet/framework/sdk:3.5
COPY bin/ MbrRst/
WORKDIR MbrRst/Release
ENTRYPOINT ["RunApplication.exe", "oradbserv1", "krish", "one", $filePath, $sourcePath, $destPath]

当我尝试运行上面的代码时,它给我错误

详细信息:给定的程序集名称或代码库无效。 (例外 从HRESULT:0x80131047)

我想在运行exe时传递文件夹名称和文件作为输入。有人可以帮我吗?

预先感谢

0 个答案:

没有答案