我使用的方法如下:
Windows的Docker (1.13.0-beta38 (9805)) Windows 10 Pro Visual Studio代码(v1.8.1)
我想从microsoft/nanoserver基映像创建一个dockerfile。从那里,我想安装我需要的软件,我的应用程序。
现在,假设我想安装以下内容:
有人能告诉我我需要在下面的Dockerfile中添加什么才能实现这一点吗?
我曾经访问过.NET核心CLI站点,但我只能看到一种下载安装程序的方法,而不是通过命令行安装的选项。
谢谢
FROM microsoft/nanoserver
*** commands that install the software I need ***发布于 2019-01-22 21:47:36
您需要为.net核心使用powershell安装脚本:
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
就像这样:
FROM microsoft/nanoserver:10.0.14393.2551
COPY install install
WORKDIR c:/install
RUN ["powershell", "./dotnet-install.ps1"](.ps1脚本在我的“安装”文件夹中.)
https://stackoverflow.com/questions/41783757
复制相似问题