I build successfully with dockerfile, but when I try to run a new container from the build image, I get the following error:
What do i have to do for the solution?
Error : /bin/sh: 1: [dotnet,: not found
docker run --rm -it -p 8080:80 furkaandogan/myapp:0.1
Run Code Online (Sandbox Code Playgroud)
FROM microsoft/aspnetcore:1.1
ARG source
WORKDIR /app
ENV ASPNETCORE_URLS http://*:80
EXPOSE 80
COPY ./publish/myapp .
ENTRYPOINT ["dotnet", "myapp.dll"]
Run Code Online (Sandbox Code Playgroud) 我编辑了launchSettings.JSON文件并更改了端口.
"Gdb.Blopp": {
"commandName": "Project",
"launchBrowser": false,
"launchUrl": "http://localhost:4000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Run Code Online (Sandbox Code Playgroud)
不过,它仍然从5000端口开始.那个设置是否被忽视了,还是我错过了别的什么?