Synchronize repository with Athena deployment

This commit is contained in:
Mikei386
2026-09-13 20:01:36 +02:00
parent 040a2df48b
commit fce9900389
60 changed files with 2570 additions and 607 deletions
+26
View File
@@ -0,0 +1,26 @@
# syntax=docker/dockerfile:1
FROM python:3.12-trixie
ARG APPLIO_COMMIT=7fa68ec2166ab1331c539704159fa14901e94e5a
ENV PATH=/app/.venv/bin:$PATH \
HF_HOME=/models/huggingface \
PIP_DISABLE_PIP_VERSION_CHECK=1
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl ffmpeg git libportaudio2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN git clone https://github.com/IAHispano/Applio.git . \
&& git checkout "$APPLIO_COMMIT" \
&& python3 -m venv /app/.venv \
&& pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir python-ffmpeg \
&& pip install --no-cache-dir torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 \
--index-url https://download.pytorch.org/whl/cu128 \
&& sed -i '/^torch==/d;/^torchvision==/d;/^torchaudio==/d' requirements.txt \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir "websockets>=13.0"
EXPOSE 6969
CMD ["python3", "app.py", "--server-name", "0.0.0.0", "--port", "6969"]
+46
View File
@@ -0,0 +1,46 @@
services:
applio-studio:
build: .
image: mike-ai/applio-studio:7fa68ec
container_name: mike-ai-applio-studio
restart: "no"
# PyTorch DataLoader workers exchange training batches through /dev/shm.
# Docker's 64 MiB default is far too small and can make failed training
# runs look successful because of an upstream Applio exit-code bug.
shm_size: "16gb"
labels:
com.mike-ai.applio-worker: applio
environment:
NVIDIA_VISIBLE_DEVICES: ${VOICE_GPU_UUID:?set VOICE_GPU_UUID to the RTX 5080 UUID}
NVIDIA_DRIVER_CAPABILITIES: compute,utility
HF_HOME: /models/huggingface
PYTORCH_CUDA_ALLOC_CONF: expandable_segments:True
ports:
- "127.0.0.1:8011:6969"
volumes:
- /data/voice/applio/huggingface:/models/huggingface
- /data/voice/applio/logs:/app/logs
- /data/voice/applio/models:/app/rvc/models
- /data/voice/applio/datasets:/app/assets/datasets
- /data/voice/applio/config.json:/app/assets/config.json
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:6969/ >/dev/null"]
interval: 5s
timeout: 3s
start_period: 900s
retries: 3
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["${VOICE_GPU_UUID:?set VOICE_GPU_UUID to the RTX 5080 UUID}"]
capabilities: [gpu]
networks:
frontend:
aliases: [applio-studio]
networks:
frontend:
name: mike-ai_frontend
external: true