Update docker-build.sh

make build directories
This commit is contained in:
erew123 authored and GitHub committed 2024-12-22 16:26:01 +00:00
1 parent 5a18d68d20
commit 79c26243d6
1 file changed
+10 -1
+10 -1
View File
@@ -9,6 +9,11 @@ TTS_MODEL=xtts
DOCKER_TAG=latest
CLEAN=false
# Create required build directories if they don't exist
mkdir -p ${SCRIPT_DIR=}/docker/conda/build
mkdir -p ${SCRIPT_DIR=}/docker/deepspeed/build
echo "Created build directories"
# Parse arguments
while [ "$#" -gt 0 ]; do
case "$1" in
@@ -42,6 +47,10 @@ done
if [ "$CLEAN" = true ]; then
rm -rf ${SCRIPT_DIR=}/docker/conda/build
rm -rf ${SCRIPT_DIR=}/docker/deepspeed/build
# Recreate directories after clean
mkdir -p ${SCRIPT_DIR=}/docker/conda/build
mkdir -p ${SCRIPT_DIR=}/docker/deepspeed/build
echo "Cleaned and recreated build directories"
fi
$SCRIPT_DIR/docker/conda/build-conda-env.sh \
@@ -62,4 +71,4 @@ docker buildx \
-t alltalk_beta:${DOCKER_TAG} \
.
echo "Docker build process finished. Use docker-start.sh to start the container."
echo "Docker build process finished. Use docker-start.sh to start the container."