Add BUILD_ARCH argument to Dockerfile

This commit is contained in:
Alexandre
2025-11-04 16:02:13 +01:00
committed by GitHub
parent 3abb013df2
commit 1f5e1fc32f

View File

@@ -53,8 +53,9 @@ RUN chmod 744 /ha_lsio.sh && \
rm /ha_lsio.sh
# --- MinIO, psql client etc. (unchanged) ---
ARG BUILD_ARCH
RUN set -eux; \
if [ "$BUILD_ARCH" = "aarch64" ]; then BUILD_ARCH="arm64"; fi
if [ "$BUILD_ARCH" = "aarch64" ]; then BUILD_ARCH="arm64"; fi && \
apk add --no-cache \
bash curl ca-certificates wget jq tini postgresql15-client; \
curl -fsSL https://dl.min.io/server/minio/release/linux-"$BUILD_ARCH"/minio -o /usr/local/bin/minio; \