applio (latest)

Published 2026-04-20 19:11:16 +08:00 by kstenhouse

Installation

docker pull git.flexiblyrigid.au/kstenhouse/applio:latest
sha256:3f3e7795faf46da5a758e569d3606c3757fd70e0f73e6d75ca35077d3882f249

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=20.04
ADD file:4809da414c2d478b4d991cbdaa2df457f2b3d07d0ff6cf673f09a66f90833e81 in /
CMD ["/bin/bash"]
ENV NVARCH=x86_64
ENV NVIDIA_REQUIRE_CUDA=cuda>=12.2 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 brand=titanrtx,driver>=525,driver<526
ENV NV_CUDA_CUDART_VERSION=12.2.140-1
ENV NV_CUDA_COMPAT_PACKAGE=cuda-compat-12-2
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH}/3bf863cc.pub | apt-key add - && echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH} /" > /etc/apt/sources.list.d/cuda.list && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit
ENV CUDA_VERSION=12.2.2
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-12-2=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
COPY NGC-DL-CONTAINER-LICENSE / # buildkit
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
ENV NV_CUDA_LIB_VERSION=12.2.2-1
ENV NV_NVTX_VERSION=12.2.140-1
ENV NV_LIBNPP_VERSION=12.2.1.4-1
ENV NV_LIBNPP_PACKAGE=libnpp-12-2=12.2.1.4-1
ENV NV_LIBCUSPARSE_VERSION=12.1.2.141-1
ENV NV_LIBCUBLAS_PACKAGE_NAME=libcublas-12-2
ENV NV_LIBCUBLAS_VERSION=12.2.5.6-1
ENV NV_LIBCUBLAS_PACKAGE=libcublas-12-2=12.2.5.6-1
ENV NV_LIBNCCL_PACKAGE_NAME=libnccl2
ENV NV_LIBNCCL_PACKAGE_VERSION=2.19.3-1
ENV NCCL_VERSION=2.19.3-1
ENV NV_LIBNCCL_PACKAGE=libnccl2=2.19.3-1+cuda12.2
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-libraries-12-2=${NV_CUDA_LIB_VERSION} ${NV_LIBNPP_PACKAGE} cuda-nvtx-12-2=${NV_NVTX_VERSION} libcusparse-12-2=${NV_LIBCUSPARSE_VERSION} ${NV_LIBCUBLAS_PACKAGE} ${NV_LIBNCCL_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_PACKAGE_NAME} ${NV_LIBNCCL_PACKAGE_NAME} # buildkit
COPY entrypoint.d/ /opt/nvidia/entrypoint.d/ # buildkit
COPY nvidia_entrypoint.sh /opt/nvidia/ # buildkit
ENV NVIDIA_PRODUCT_NAME=CUDA
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
ENV NV_CUDNN_VERSION=8.9.6.50
ENV NV_CUDNN_PACKAGE_NAME=libcudnn8
ENV NV_CUDNN_PACKAGE=libcudnn8=8.9.6.50-1+cuda12.2
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
LABEL com.nvidia.cudnn.version=8.9.6.50
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ${NV_CUDNN_PACKAGE} && apt-mark hold ${NV_CUDNN_PACKAGE_NAME} && rm -rf /var/lib/apt/lists/* # buildkit
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c apt-get update && apt-get install -y git wget curl build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev uuid-dev libgl1 libglib2.0-0 ffmpeg libportaudio2 portaudio19-dev && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c wget https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz && tar xzf Python-3.10.14.tgz && cd Python-3.10.14 && ./configure --without-ensurepip && make -j$(nproc) && make install && cd .. && rm -rf Python-3.10.14 Python-3.10.14.tgz # buildkit
RUN /bin/sh -c curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 # buildkit
RUN /bin/sh -c useradd -m -u 1000 applio # buildkit
WORKDIR /app
RUN /bin/sh -c git clone https://github.com/IAHispano/Applio.git . && chown -R applio:applio /app # buildkit
RUN /bin/sh -c sed -i 's/theme=my_applio,//' /app/app.py && sed -i 's/css="footer{display:none !important}",//' /app/app.py && sed -i '/js=(/,/),/d' /app/app.py && sed -i 's/Applio = gr.Blocks(/Applio = gr.Blocks(theme=my_applio, css="footer{display:none !important}", /' /app/app.py # buildkit
USER applio
ENV PATH=/home/applio/venv/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV TORCH_CUDA_ARCH_LIST=6.0
ENV NVIDIA_VISIBLE_DEVICES=all
RUN /bin/sh -c python3.10 -m venv /home/applio/venv # buildkit
RUN /bin/sh -c pip install --upgrade pip # buildkit
RUN /bin/sh -c echo "numpy==1.26.4" > /home/applio/constraints.txt && echo "gradio==4.40.0" >> /home/applio/constraints.txt && echo "transformers==4.38.2" >> /home/applio/constraints.txt && echo "scipy==1.15.3" >> /home/applio/constraints.txt && echo "pedalboard==0.7.7" >> /home/applio/constraints.txt # buildkit
ENV PIP_CONSTRAINT=/home/applio/constraints.txt
RUN /bin/sh -c pip install --no-cache-dir "gradio==4.40.0" # buildkit
RUN /bin/sh -c grep -v -E "^torch|^torchaudio|^torchvision|^certifi|^antlr4|^numpy|^gradio|^transformers|^setuptools|^scipy|^pedalboard" requirements.txt > requirements_filtered.txt && pip install --no-cache-dir -r requirements_filtered.txt # buildkit
RUN /bin/sh -c pip install --no-cache-dir "resampy" "torchcrepe" "torchfcpe" "transformers==4.38.2" "scipy==1.15.3" "pedalboard==0.7.7" # buildkit
ARG CACHEBUST=14
RUN |1 CACHEBUST=14 /bin/sh -c echo "$CACHEBUST" && pip install --no-cache-dir --force-reinstall torch==2.1.2+cu118 torchvision==0.16.2+cu118 torchaudio==2.1.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 # buildkit
EXPOSE [7863/tcp]
CMD ["python3.10" "app.py" "--listen" "--port" "7863"]

Labels

Key Value
com.nvidia.cudnn.version 8.9.6.50
maintainer NVIDIA CORPORATION <cudatools@nvidia.com>
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 20.04
Details
Container
2026-04-20 19:11:16 +08:00
18
OCI / Docker
linux/amd64
7.6 GiB
Versions (25) View all