1.使用VS 2015 新建了一个Core API项目,然后把他的依赖升级到最新(我机器VS 2015默认的包都是rc版本),然后publish. 2.在publish目录的同级目录下,新建Dockerfile,没有后缀,里面内容如下: FROM microsoft/dotnet:latest WORKDIR /root # Copy the app COPY PublishOutput /root/ # Configure the listening port to #ENV ASPNETCO