0
点赞
收藏
分享

微信扫一扫

docker file 怎样写

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:3.1 #拷贝项目publish文件夹中的所有文件到 docker容器中的publish文件夹中  
COPY . /publish#设置工作目录为 `/publish` 文件夹,即容器启动默认的文件夹
WORKDIR /publish#设置Docker容器对外暴露60000端口
EXPOSE 60000#使用`dotnet HelloWebApp.dll`来运行应用程序
CMD ["dotnet", "Food.dll", "--server.urls", "http://*:60000"]


举报

相关推荐

怎样写英语日记

0 条评论