From 343e7be207974b55537f7cfe66131aa1e55fa4eb Mon Sep 17 00:00:00 2001 From: fengxsong Date: Sat, 8 Oct 2022 17:58:29 +0800 Subject: [PATCH] fix: copy binary with execute permission (#1842) Signed-off-by: fengxsong Signed-off-by: fengxsong --- docker/sealos/Dockerfile | 3 ++- docker/sealos/Dockerfile.main | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/sealos/Dockerfile b/docker/sealos/Dockerfile index a1e544876..19629a903 100644 --- a/docker/sealos/Dockerfile +++ b/docker/sealos/Dockerfile @@ -6,6 +6,7 @@ ENTRYPOINT ["/usr/bin/sealos"] WORKDIR /usr/bin/ -RUN --mount=target=/build tar xf /build/dist/sealos_*_$(echo ${TARGETPLATFORM} | tr '/' '_' | sed -e 's/arm_/arm/').tar.gz sealos +RUN --mount=target=/build tar xf /build/dist/sealos_*_$(echo ${TARGETPLATFORM} | tr '/' '_' | sed -e 's/arm_/arm/').tar.gz sealos && \ + chmod +x sealos CMD ["--help"] diff --git a/docker/sealos/Dockerfile.main b/docker/sealos/Dockerfile.main index 259e718bc..ecca6588a 100644 --- a/docker/sealos/Dockerfile.main +++ b/docker/sealos/Dockerfile.main @@ -6,4 +6,4 @@ ENTRYPOINT ["/usr/bin/sealos"] WORKDIR /usr/bin/ -COPY /bin/sealos-$TARGETARCH/sealos . +COPY --chmod=0755 /bin/sealos-$TARGETARCH/sealos .