首页 > 解决方案 > 如何在 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 时将文件夹名称和文件作为输入传递。有人可以帮帮我吗?

提前致谢

标签: c#dockercontainers

解决方案


推荐阅读