FROM nginx:alpine # Static showcase image. Keep the existing site, demos, contracts and test entrypoints. COPY nginx.conf /etc/nginx/conf.d/default.conf COPY site/ /usr/share/nginx/html/site/ COPY frameworks/ /usr/share/nginx/html/frameworks/ COPY .design_library/ /usr/share/nginx/html/.design_library/ COPY tests/ /usr/share/nginx/html/tests/ COPY sitemap.xml /usr/share/nginx/html/sitemap.xml # 构建上下文可能携带 700 目录权限;统一放开静态资源可读可执行位 RUN chmod -R a+rX /usr/share/nginx/html/ EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1/healthz || exit 1 CMD ["nginx", "-g", "daemon off;"]