Docker不会在映像内复制json文件

时间:2018-12-18 21:03:49

标签: docker docker-image

您好,我不明白为什么我无法在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. 文件放入图像中吗?

0 个答案:

没有答案