#dockerfile #使用 nginx最新版本作为基础镜像 FROM nginx #将当前文件夹的dist文件复制到容器的/usr/share/nginx/html目录 COPY dist/ /usr/share/nginx/html/ #声明运行时容器暴露的端口(容器提供的服务端口) EXPOSE 80 #CMD:指定容器启动时要运行的命令 CMD ["nginx", "-g", "daemon off;"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。