diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index 3487b33e3..e94f2b932 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -53,6 +53,11 @@ ENV QBM_DOCKER True ENV QBT_SKIP_QB_VERSION_CHECK True RUN \ + # Allow specific arch + BUILD_ARCH=$(uname -m) && \ + echo "${BUILD_ARCH}" && \ + BUILD_ARCH=${BUILD_ARCH:-x86} && \ + if [[ "${BUILD_ARCH}" == *aarch64* ]]; then apk add python3-dev; fi && \ # Install qbit_manage mkdir -p /qbit_manage && \ curl -o /tmp/qbit_manage.tar.gz -L "https://github.com/StuffAnThings/qbit_manage/archive/master.tar.gz" && \