瀏覽代碼

Fix protoc bin & include permissions in workspace

abler98 4 年之前
父節點
當前提交
fbeabd03b0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      workspace/Dockerfile

+ 3 - 1
workspace/Dockerfile

@@ -1404,7 +1404,9 @@ RUN if [ ${INSTALL_PROTOC} = true ]; then \
   curl -L -o /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v${REAL_PROTOC_VERSION}/${PROTOC_ZIP} && \
   unzip -q -o /tmp/protoc.zip -d /usr/local bin/protoc && \
   unzip -q -o /tmp/protoc.zip -d /usr/local 'include/*' && \
-  rm -f /tmp/protoc.zip \
+  rm -f /tmp/protoc.zip && \
+  chmod +x /usr/local/bin/protoc && \
+  chmod -R +r /usr/local/include/google \
 ;fi
 
 ###########################################################################