我跟着这个博客文章来获得一个运行在Docker容器中的asp.net应用程序,但直接运行我的容器后,它停止。 当我查看容器的日志时,这就是我所得到的:
2015-05-28T03:46:56.959409351Z Please specify the command to run
我的dockerfile内容如下:
FROM microsoft/aspnet COPY . /app WORKDIR /app RUN ["dnu", "restore"] EXPOSE 5004 ENTRYPOINT ["dnx", "kestrel"]
我错过了什么?
我认为你需要运行的命令实际上是dnx . kestrel
dnx . kestrel
所以尝试改变入口点是:
ENTRYPOINT ["dnx", ".", "kestrel"]