Dockerizing a Windows Service (.NET)

Hello Team,

Please share the steps one by one for Window Service on Docker. I have a lot window service which are going to deploy on Docker. Window service has devloped in old .NetFramework version. Now its going to build using Visual studio 2019 .NETFrameow 4.7.2, and need to deploy on Docker. We dont want to refactoring the code as we have more than 200 window service.
Please help/guide on the same.
Awaiting you reply

@ asdhangar
@andrewatactgov

I am getting error at COPY [“C:/Install/”, “/Service/”] step

COPY [“WindowsService/bin/Debug/”, “/Service/”]

above is my code. WindowsService is my windows service name. what is “Service”?

can someone please help me with sample windows service and dockerfile, I am stuck.

also what is C:/Install/ in given sample code?