Deployment and call to an API asp.net core

Hello everybody,

I’m totally new with Docker.
At one moment I successed to build and run my API image in docker.
However I couldn’t access it by HTTP request from POSTMAN.

I try to modify my code and now that is not build.

I have this in docker file ;
FROM microsoft/dotnet:latest
WORKDIR /app
COPY /app /app
ENTRYPOINT [“dotnet”, “BXApiLogs.dll”]

I use this command line
PS C:\Users\Gobelet\Documents\Visual Studio 2015\Projects\BXSport-Solution-V1\BXApiLogs> docker build -t app .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\Users\Gobelet\Documents\Visual Studio 2015\Projects\BXSport-Solution

Here is my folders :

So I have two questions :

  • first, what command should I use?
  • how access to this API by HTTP ?

Thanks a lot to the person which will help me.

Is that the full error message? Docker should be looking for the Dockerfile in C:\Users\Gobelet\Documents\Visual Studio 2015\Projects\BXSport-Solution-V1\BXApiLogs.

Maybe try fully specifying the Dockerfile with -f .\Dockerfile.

Hi,

thanks for the advice but that not works.

Can you give all the command ?

And yes that’s all the error message.