diff --git a/hosting/single/Dockerfile b/hosting/single/Dockerfile index 57aaf8a9db..495f7ef246 100644 --- a/hosting/single/Dockerfile +++ b/hosting/single/Dockerfile @@ -20,7 +20,7 @@ RUN node /pinVersions.js && yarn && yarn build && /cleanup.sh FROM couchdb:3.2.1 -ARG TARGETARCH +ARG TARGETARCH amd64 COPY --from=build /app /app COPY --from=build /worker /worker @@ -88,7 +88,8 @@ ADD hosting/single/vm.args ./etc/ # setup minio WORKDIR /minio -RUN wget https://dl.min.io/server/minio/release/linux-${TARGETARCH}/minio && chmod +x minio +ADD scripts/install-minio.sh ./install.sh +RUN chmod +x install.sh && ./install.sh # setup runner file WORKDIR / diff --git a/scripts/install-minio.sh b/scripts/install-minio.sh new file mode 100755 index 0000000000..4f7e589e86 --- /dev/null +++ b/scripts/install-minio.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ $TARGETARCH == arm* ]] ; +then + wget https://dl.min.io/server/minio/release/linux-arm64/minio +else + wget https://dl.min.io/server/minio/release/linux-amd64/minio +fi +chmod +x minio