Skip to content

Commit 2ff6715

Browse files
committed
fix
1 parent 7946f56 commit 2ff6715

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

debian-build/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ RUN \
3131
# Clean up
3232
&& rm -rf /var/lib/apt/lists/*
3333

34-
RUN \
35-
# Install s5cmd
36-
curl -L https://github.com/peak/s5cmd/releases/latest/download/s5cmd_linux_amd64.tar.gz \
34+
RUN ARCH=$(dpkg --print-architecture) \
35+
&& if [ "$ARCH" = "amd64" ]; then S5CMD_ARCH="amd64"; \
36+
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 \
3739
| tar -xz \
3840
&& mv s5cmd /usr/local/bin/s5cmd
3941

0 commit comments

Comments
 (0)