This is to create a Docker container image that contains the PowerServer Web APIs.
Step 1: Create a file named Dockerfile in
the same directory as the ServerAPIs.dll
(%username%\source\repos\<solutionname>\ServerAPIs\bin\Release\net8.0
by default) and add the following contents:
FROM mcr.microsoft.com/dotnet/aspnet:6.0 WORKDIR /app EXPOSE 80 COPY . . ENTRYPOINT ["dotnet", "ServerAPIs.dll"]
Step 2: Open a PowerShell window in this directory and run the following command to build the Docker image:
docker build . -t powerserverwebapi:001


