I’ve started a blank
x new vue-vite project, and followed the video. I noticed that there’s a
Dockerfile which seems to follow the standard MS format (a
build and a
The template came with DB Migrations, there’s even a
npm script for it in the template:
"postinstall": "cd ../api/myapp && dotnet run --AppTasks=migrate",
How does this combine with Docker? I’m not that experienced with Docker, so I just ran a basic
docker build -t myapp and
docker run -d -p 80:8080 --name myappA myapp
I can now access the template-based application on port 80, and I do get the Vue based front-end, but once it calls Authenticate from the /api, it complains about missing tables, that should probably have been created by the Migrate AppTask.
So how can I run the AppTask in Docker? I see that this has been thought for Docker-Compose (there’s a yaml example file), but is that the only way?