treesgobark
✅ Docker + Blazor + EF Core 7 + SQLite = __EFMigrationsHistory doesnt exist
Hello everyone i am new to docker and i am attempting to containerize an existing project. I've got a .NET 7 blazor server app using EF core 7 with sqlite. It works fine running via the typical methods using IIS express, but when it goes into my docker container, applying the EF migrations causes a SQL error at the end where it can't find my __EFMigrationsHistory table, even though it shows creating that table at the very beginning of the logs. The only reference i found online that seemed like it could be relevant was this one: https://stackoverflow.com/questions/42393128/entityframeworkcore-for-sqlite-not-creating-efmigrationhistory-table but it's super out of date and their project seems to run just fine on the first runthrough whereas mine does not. I'll leave it here in case someone can find a hint in there.
Attached file contains my compose file, dockerfile, and the console output from the container
17 replies