forked from AILab-CVC/VideoCrafter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_docker.sh
19 lines (14 loc) · 975 Bytes
/
build_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set -e
export DOCKER_BUILDKIT=1 # required for .dockerignore per Dockerfile
export COMMIT_HASH=1cac500
docker build --build-arg COMMIT_HASH --build-arg USE_XFORMERS=1 -t videocrafter:"${COMMIT_HASH}"-xformers -f docker/Dockerfile docker/
docker tag videocrafter:"${COMMIT_HASH}"-xformers wawa9000/videocrafter:"${COMMIT_HASH}"-xformers
docker tag videocrafter:"${COMMIT_HASH}"-xformers wawa9000/videocrafter:latest-xformers
./download_models.sh
docker build -t videocrafter:"${COMMIT_HASH}"-xformers-full -f docker/models.Dockerfile .
docker tag videocrafter:"${COMMIT_HASH}"-xformers-full wawa9000/videocrafter:"${COMMIT_HASH}"-xformers-full
docker tag videocrafter:"${COMMIT_HASH}"-xformers-full wawa9000/videocrafter:latest-xformers-full
docker push wawa9000/videocrafter:"${COMMIT_HASH}"-xformers
docker push wawa9000/videocrafter:latest-xformers
docker push wawa9000/videocrafter:"${COMMIT_HASH}"-xformers-full
docker push wawa9000/videocrafter:latest-xformers-full