fix: copy binary with execute permission (#1842)

Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
This commit is contained in:
fengxsong
2022-10-08 17:58:29 +08:00
committed by GitHub
parent 01f2aa24d7
commit 343e7be207
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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"]
+1 -1
View File
@@ -6,4 +6,4 @@ ENTRYPOINT ["/usr/bin/sealos"]
WORKDIR /usr/bin/
COPY /bin/sealos-$TARGETARCH/sealos .
COPY --chmod=0755 /bin/sealos-$TARGETARCH/sealos .