我使用 Dockerfile 成功构建了镜像,但是当我尝试从构建镜像运行新容器时,出现以下错误:
Error : /bin/sh: 1: [dotnet,: not found
请问我应该怎么解决这个问题?
Docker 运行命令:
docker run --rm -it -p 8080:80 furkaandogan/myapp:0.1
Dockerfile:
FROM microsoft/aspnetcore:1.1
ARG source
WORKDIR /app
ENV ASPNETCORE_URLS http://*:80
EXPOSE 80
COPY ./publish/myapp .
ENTRYPOINT ["dotnet", "myapp.dll"]