# Docker image for web file run # VERSION 2.0 # Author: bb # 指明当前镜像继承的基础镜像,编译当前镜像时候会自动下载基础镜像(仅第一次打包会下载) # 基础镜像 FROM nginx LABEL Author="bb, aagmix" LABEL VERSION="1.0" # config COPY nginx.conf /etc/nginx COPY conf.d /etc/nginx/conf.d # 将html里的文件直接复制到nginx的html目录 COPY html /usr/share/nginx/html # 暴露端口 EXPOSE 3000 CMD "nginx" "-g" "daemon off;"