我正在使用Docker容器部署.Net Core应用程序。
我能够成功使用推送图像 heroku container:push web
但是打电话heroku container:release web回来No command specified for process type web。
我有点困惑我尝试添加 heroku.yml
setup:
addons:
- plan: heroku-postgresql
as: DATABASE
build:
docker:
web: Dockerfile
config:
ASPNETCORE_ENVIRONMENT: development
run:
web: dotnet Api.dll
Run Code Online (Sandbox Code Playgroud)
在根目录上,但仍然没有运气。
我可以确认图像已创建,我在docker中看到了
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.heroku.com/immense-temple-11020/web latest 5cb62a9af317 16 minutes ago 272MB
Run Code Online (Sandbox Code Playgroud)
如果有人能指出我正确的方向,将不胜感激。谢谢!