Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于示例代码的Dockerfile的问题 #6

Open
tangfengray opened this issue Oct 28, 2022 · 1 comment
Open

关于示例代码的Dockerfile的问题 #6

tangfengray opened this issue Oct 28, 2022 · 1 comment

Comments

@tangfengray
Copy link

1、dockerfile的位置问题,如果用visual studio直接创建dockerfile的话,位置是与项目(.csproj)在一起的,而并非与解决方案(.sln)在一起。因为一个解决方方案可能存在若干项目,每个项目都可以作为启动项目执行。所以示例代码里面的dockerfile能不能调整一下位置。

2、dockerfile的格式问题,示例里面copy的部分,能不能使用vs默认生成的格式?

使用vs创建了一个新的 hello world 项目,在向微信云托管部署的过程中,一直报路径的错误,最后也没解决,不知道咋回事。

@Cubelrti
Copy link
Contributor

Cubelrti commented Nov 2, 2022

你好,

本项目是基于官方 .NET Core 示例 结合云托管示例开发的。其项目组织和文件结构,可能与 Visual Studio 创建的有差异。

部署错误的问题,可以参考 部署常见问题 进行排查,检查目标目录,文件夹打包是否正确。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants