docker image is reduced in size

This commit is contained in:
2026-09-24 18:17:15 +03:00
parent f527872642
commit 19d67b7a26
3 changed files with 8 additions and 3 deletions

View File

@@ -31,14 +31,14 @@ cp input.mkv "$WORK_DIR/"
# nvidia
docker run --rm --gpus all -e AI_API_KEY \
--mount type=volume,src=sumka-whisper-cache,dst=/root/.cache/whisper \
--mount type=volume,src=whisper-cache,dst=/tmp/sumka-cache/whisper \
--mount type=bind,src="$WORK_DIR",dst=/work \
--tmpfs /tmp:rw,size=8g sumka:nvidia
# amd
docker run --rm --device=/dev/kfd --device=/dev/dri --group-add video \
--security-opt seccomp=unconfined -e AI_API_KEY \
--mount type=volume,src=sumka-whisper-cache,dst=/root/.cache/whisper \
--mount type=volume,src=whisper-cache,dst=/tmp/sumka-cache/whisper \
--mount type=bind,src="$WORK_DIR",dst=/work \
--tmpfs /tmp:rw,size=8g sumka:amd
```