can i use windows nano server as base image?

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 couldn’t find anything about Windows hosting in fly.io docs, I’m afraid this might not be supported.

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.

Fly machines are Firecracker microVMs, and I just saw that their website lists the guests they support (no Windows):

Firecracker can run Linux and OSv guests.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.