abp icon indicating copy to clipboard operation
abp copied to clipboard

ABP Dockerfile(s) not working with Visual Studio

Open improwise opened this issue 1 year ago • 2 comments

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 avatar Oct 11 '24 12:10 improwise

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 avatar Oct 11 '24 12:10 improwise

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)

improwise avatar Oct 11 '24 13:10 improwise

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 04:04 stale[bot]