Использование do tnet -ef с docker и asp. net core 3.1 - PullRequest
0 голосов
/ 08 февраля 2020

Я пытаюсь запустить свое приложение, написанное на asp. net core 3.1 на docker. Мне нужно создать базу данных с помощью миграций. При выполнении команды dotnet ef database update; я получаю:

Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET Core program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Как я понимаю, мне нужно установить инструмент do tnet -ef. Как правильно сделать это в контейнере?

...