forked from XBastille/DeepFX-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-gpu.sh
More file actions
25 lines (19 loc) · 701 Bytes
/
build-gpu.sh
File metadata and controls
25 lines (19 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
echo "Building DeepFX Studio GPU Docker image..."
if [ -z "$HF_TOKEN" ]; then
echo "Warning: HF_TOKEN environment variable not set!"
echo " Gated models (SD 3.5, FLUX) will be downloaded at runtime."
echo " To pre-download models, set HF_TOKEN first:"
echo " export HF_TOKEN=your_huggingface_token"
echo ""
docker build -f Dockerfile.gpu -t deepfx-studio-gpu .
else
echo "HF_TOKEN found - will pre-download gated models"
docker build -f Dockerfile.gpu \
--build-arg HF_TOKEN="$HF_TOKEN" \
-t deepfx-studio-gpu .
fi
echo ""
echo "Build completed!"
echo "To run: docker run --gpus all -p 8000:8000 deepfx-studio-gpu"