We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7946f56 commit 2ff6715Copy full SHA for 2ff6715
debian-build/Dockerfile
@@ -31,9 +31,11 @@ RUN \
31
# Clean up
32
&& rm -rf /var/lib/apt/lists/*
33
34
-RUN \
35
- # Install s5cmd
36
- curl -L https://github.com/peak/s5cmd/releases/latest/download/s5cmd_linux_amd64.tar.gz \
+RUN ARCH=$(dpkg --print-architecture) \
+ && if [ "$ARCH" = "amd64" ]; then S5CMD_ARCH="amd64"; \
+ elif [ "$ARCH" = "arm64" ]; then S5CMD_ARCH="arm64"; \
37
+ else echo "Unsupported architecture: $ARCH" && exit 1; fi \
38
+ && curl -fL https://github.com/peak/s5cmd/releases/latest/download/s5cmd_linux_${S5CMD_ARCH}.tar.gz \
39
| tar -xz \
40
&& mv s5cmd /usr/local/bin/s5cmd
41
0 commit comments