networking: Add jq, update rclone

This commit is contained in:
Remi Rampin 2024-07-15 10:11:17 -04:00
parent 18e5973030
commit 20d5bf8ea3
1 changed files with 5 additions and 5 deletions

View File

@ -2,16 +2,16 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update && \ RUN apt-get update && \
apt-get install -yy iproute2 traceroute iputils-ping iputils-tracepath netcat nmap bind9-dnsutils curl openssh-client zip unzip && \ apt-get install -yy iproute2 traceroute iputils-ping iputils-tracepath netcat nmap bind9-dnsutils curl openssh-client zip unzip jq && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN if [ $TARGETPLATFORM = "linux/amd64" ]; then curl -Lo /tmp/rclone.zip https://downloads.rclone.org/v1.65.0/rclone-v1.65.0-linux-amd64.zip ; \ RUN if [ $TARGETPLATFORM = "linux/amd64" ]; then curl -Lo /tmp/rclone.zip https://github.com/rclone/rclone/releases/download/v1.67.0/rclone-v1.67.0-linux-amd64.zip ; \
elif [ $TARGETPLATFORM = "linux/arm/v7" ]; then curl -Lo /tmp/rclone.zip https://downloads.rclone.org/v1.65.0/rclone-v1.65.0-linux-arm-v7.zip ; \ elif [ $TARGETPLATFORM = "linux/arm/v7" ]; then curl -Lo /tmp/rclone.zip https://github.com/rclone/rclone/releases/download/v1.67.0/rclone-v1.67.0-linux-arm-v7.zip ; \
elif [ $TARGETPLATFORM = "linux/arm64" ]; then curl -Lo /tmp/rclone.zip https://downloads.rclone.org/v1.65.0/rclone-v1.65.0-linux-arm64.zip ; \ elif [ $TARGETPLATFORM = "linux/arm64" ]; then curl -Lo /tmp/rclone.zip https://github.com/rclone/rclone/releases/download/v1.67.0/rclone-v1.67.0-linux-arm64.zip ; \
elif [ $TARGETPLATFORM = "linux/ppc64le" ]; then curl -Lo /tmp/rclone.zip https://downloads.rclone.org/v1.65.0/rclone-v1.65.0-linux-mipsle.zip ; \ elif [ $TARGETPLATFORM = "linux/ppc64le" ]; then curl -Lo /tmp/rclone.zip https://github.com/rclone/rclone/releases/download/v1.67.0/rclone-v1.67.0-linux-mipsle.zip ; \
else echo "no URL for $TARGETPLATFORM"; exit 1; fi && \ else echo "no URL for $TARGETPLATFORM"; exit 1; fi && \
(cd /tmp && unzip rclone.zip) && \ (cd /tmp && unzip rclone.zip) && \
rm /tmp/rclone.zip && \ rm /tmp/rclone.zip && \