您好,我不明白为什么我无法在docker映像中放入HttpClient
文件。
我有json
个要复制到图像的元素:
-3
(发布文件夹)
-publish
-dockerfile
// configuartion json
conf.json
当我用FROM microsoft/aspnetcore-runtime
WORKDIR /app
COPY . /app
ENTRYPOINT ["dotnet","publish/Server.dll"]
观察容器内部时,复制了-it
,与folder
相同,但没有复制dockerfile
。相反,有一个json
文件txt
如下:
temp.txt
我也可以将You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
文件放入图像中吗?