Skip to content

Commit

Permalink
Update docker-build.sh
Browse files Browse the repository at this point in the history
make build directories
  • Loading branch information
erew123 authored Dec 22, 2024
1 parent 5a18d68 commit 79c2624
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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."

0 comments on commit 79c2624

Please sign in to comment.