FROM nginx:1.27.4-alpine # 配置 nginx RUN echo "types { application/javascript js mjs; }" > /etc/nginx/conf.d/mjs.conf \ && rm -rf /etc/nginx/conf.d/default.conf # 只拷贝打包好的 dist COPY apps/web-antd/dist /usr/share/nginx/html # 拷贝 nginx 配置 COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf EXPOSE 8090 CMD ["nginx", "-g", "daemon off;"]