FROM nginx:alpine MAINTAINER anfioo # 把当前目录下的 nginx.conf 复制到容器的 Nginx 配置目录 COPY nginx.conf /etc/nginx/conf.d/default.conf # 把 html 目录复制到容器的 /usr/share/nginx/html COPY html /MicroCommunityWeb EXPOSE 8111 ENTRYPOINT ["nginx","-g","daemon off;"]