Hello! Im trying to deploy an executable for windows, but I encountered an error: <<Error: couldn’t find user “ContainerUser.”>> I dont understand is that because of me or because of nanoserver.
this is my Dockerfile. Thank you in advance.
FROM mcr.microsoft.com/powershell:lts-nanoserver-ltsc2022
WORKDIR /app
COPY ./target/ . /app/
ENTRYPOINT ["portfolio.exe"]
I don’t think that would work, running a Windows Server image requires a Windows host, and I believe the Fly machines are Linux.
If you compile your app using a newer version of .NET (.NET Core, .NET 5+), those have a cross platform SDK and runtime, which will run in Linux environments. I currently have a .NET 8 website running on a Fly machine.