docker image is reduced in size
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user