Hi all,
I am having issues with running my docker containers, whenever I create a image and try to run a container I get these messages:
The command could not be loaded, possibly because:
- You intended to execute a .NET application:
The application ‘DockerWSSO.dll’ does not exist. - You intended to execute a .NET SDK command:
No .NET SDKs were found.
I have checked the naming conventions and they are correct and I have the required sdk’s. This is the docker file:
FROM Microsoft Artifact Registry AS build-env
WORKDIR /App
Copy everything
COPY . ./
Restore as distinct layers
RUN dotnet restore
Build and publish a release
RUN dotnet publish -c Release -o out
Build runtime image
FROM Microsoft Artifact Registry
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT [“dotnet”, “DockerWSSO.dll”]
My DockerWSSO.dll is in “*\repos\DockerWSSO\DockerWSSO\bin\Release\net8.0\publish\DockerWSSO.dll”
I am using .net8.0
Any help would be highly appreciated