Skip to content

Commit

Permalink
reduce Docker image sizes
Browse files Browse the repository at this point in the history
qrkourier committed Nov 1, 2024
1 parent 9bb9e89 commit 5ed13fb
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions dist/docker-images/cross-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

3 changes: 1 addition & 2 deletions dist/docker-images/ziti-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

3 changes: 1 addition & 2 deletions dist/docker-images/ziti-tunnel/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 5ed13fb

Please sign in to comment.