abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.88k stars 3.44k forks source link

ABP Dockerfile(s) not working with Visual Studio #21057

Open improwise opened 1 week ago

improwise commented 1 week ago

It seems like the Dockerfile(s) created by ABP Studio do not work well with Visual Studio. In fact, for whatever reason, Visual studio does not even seem to recognize them as being docker files (no Docker icon on the files and also no Docker Build in context menu). This also mean that it seems you can't use Visual Studio to publish to Docker Hub etc. as it claims there is no Dockerfile present. This could perhaps be related to that Visual Studio seem to use the parent folder rather than the project folder for it's Dockerfile(s).

It seems like you can solve it using the dotnet CLI and some workarounds, but being mainly a .NET framework, I think that it should work with Visual Studio as well.

Or am I doing something wrong?

improwise commented 1 week ago

There is very limited documentation about using ABP with Docker (at least that I have been able to find out). This is the closest thing but it is for the Commercial version and does not seem to be entirely up to date

https://abp.io/docs/commercial/8.1/startup-templates/application/deployment-docker-compose?UI=BlazorServer&DB=EF&Tiered=Yes

improwise commented 1 week ago

There also seem to be no more docker-compose files at all for solutions created via ABP Studio.

(We are using ABP Commercial but since Dockerfiles and ABP Studio is a thing for free version as well, this seems more appropriate here)