FROM nginx:alpine # 复制 Nginx 配置 COPY nginx.conf /etc/nginx/conf.d/default.conf # 复制静态资源 COPY css/ /usr/share/nginx/html/css/ COPY img/ /usr/share/nginx/html/img/ COPY resume/ /usr/share/nginx/html/resume/ COPY resume.txt /usr/share/nginx/html/resume.txt COPY other/ /usr/share/nginx/html/other/ # 暴露端口 EXPOSE 80 # 启动 Nginx CMD ["nginx", "-g", "daemon off;"]