소스 검색

fix(docker): 修复 s6-overlay 脚本执行权限,解决 Windows 构建后 Permission denied

kinglee 1 주 전
부모
커밋
87dc2ef27e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      pack/Dockerfile

+ 3 - 0
pack/Dockerfile

@@ -399,6 +399,9 @@ EOF
 # Initialize configurations
 COPY pack/rootfs/ /
 COPY docker-compose/grafana/grafana_dashboards/ /etc/dashboards/
+# Fix execute permissions for scripts (lost on Windows bind mount)
+RUN find /etc/s6-overlay -name '*.sh' -exec chmod +x {} + \
+    && find /etc/s6-overlay/scripts -type f ! -name '*.sh' -exec chmod +x {} +
 ## END Install Higress standalone components
 
 ## Install Skopeo