dockerfiles/networking

20 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-05-29 01:30:15 +00:00
#docker buildx build --pull - --platform linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le --push --tag quay.io/remram44/networking < networking
FROM ubuntu:22.04
RUN apt-get update && \
2024-07-15 14:11:17 +00:00
apt-get install -yy iproute2 traceroute iputils-ping iputils-tracepath netcat nmap bind9-dnsutils curl openssh-client zip unzip jq && \
2024-05-29 01:30:15 +00:00
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ARG TARGETPLATFORM
2024-07-15 14:11:17 +00:00
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://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://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://github.com/rclone/rclone/releases/download/v1.67.0/rclone-v1.67.0-linux-mipsle.zip ; \
2024-05-29 01:30:15 +00:00
else echo "no URL for $TARGETPLATFORM"; exit 1; fi && \
(cd /tmp && unzip rclone.zip) && \
rm /tmp/rclone.zip && \
mv /tmp/rclone*/rclone /usr/local/bin/rclone && \
rm -rf /tmp/rclone*