diff --git a/dist/docker-images/cross-build/Dockerfile b/dist/docker-images/cross-build/Dockerfile index d2f574efc..d5ddaa639 100644 --- a/dist/docker-images/cross-build/Dockerfile +++ b/dist/docker-images/cross-build/Dockerfile @@ -16,8 +16,7 @@ RUN apt-get -y update RUN apt-get -y install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc-aarch64-linux-gnu RUN apt-get -y install wget build-essential -COPY ./linux-build.sh /usr/local/bin/ -RUN chmod a+rx /usr/local/bin/linux-build.sh +COPY --chmod=0755 ./linux-build.sh /usr/local/bin/ RUN wget -q https://go.dev/dl/${go_distribution_file} RUN tar -xzf ${go_distribution_file} -C /usr/local/ diff --git a/dist/docker-images/ziti-cli/Dockerfile b/dist/docker-images/ziti-cli/Dockerfile index a060c2ae0..2f2f0f07c 100644 --- a/dist/docker-images/ziti-cli/Dockerfile +++ b/dist/docker-images/ziti-cli/Dockerfile @@ -55,8 +55,7 @@ RUN groupadd --gid ${ZGID} ziggy \ && chown -R ${ZUID}:${ZGID} ${HOME} \ && chmod -R g+rwX ${HOME} RUN mkdir -p /usr/local/bin -COPY ${ARTIFACTS_DIR}/${TARGETARCH}/${TARGETOS}/ziti /usr/local/bin/ -RUN chmod 0755 /usr/local/bin/ziti +COPY --chmod=0755 ${ARTIFACTS_DIR}/${TARGETARCH}/${TARGETOS}/ziti /usr/local/bin/ RUN /usr/local/bin/ziti completion bash > /etc/bash_completion.d/ziti_cli diff --git a/dist/docker-images/ziti-tunnel/Dockerfile b/dist/docker-images/ziti-tunnel/Dockerfile index 2b0682c61..9799dbc35 100644 --- a/dist/docker-images/ziti-tunnel/Dockerfile +++ b/dist/docker-images/ziti-tunnel/Dockerfile @@ -22,7 +22,6 @@ RUN INSTALL_PKGS="util-linux iptables" && \ microdnf clean all WORKDIR /netfoundry -COPY ./entrypoint.sh / -RUN chmod +x /entrypoint.sh +COPY --chmod=0755 ./entrypoint.sh / ENTRYPOINT [ "/entrypoint.sh" ] CMD [ "run" ]