mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
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:
@@ -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"]
|
||||
|
||||
@@ -6,4 +6,4 @@ ENTRYPOINT ["/usr/bin/sealos"]
|
||||
|
||||
WORKDIR /usr/bin/
|
||||
|
||||
COPY /bin/sealos-$TARGETARCH/sealos .
|
||||
COPY --chmod=0755 /bin/sealos-$TARGETARCH/sealos .
|
||||
|
||||
Reference in New Issue
Block a user