diff --git a/docker/Dockerfile b/docker/Dockerfile index c89a5773f7..2de4d0ffce 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,8 +18,8 @@ ENV INVOKEAI_SRC=/opt/invokeai ENV VIRTUAL_ENV=/opt/venv/invokeai ENV PATH="$VIRTUAL_ENV/bin:$PATH" -ARG TORCH_VERSION=2.1.0 -ARG TORCHVISION_VERSION=0.16 +ARG TORCH_VERSION=2.1.2 +ARG TORCHVISION_VERSION=0.16.2 ARG GPU_DRIVER=cuda ARG TARGETPLATFORM="linux/amd64" # unused but available @@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ if [ "$TARGETPLATFORM" = "linux/arm64" ] || [ "$GPU_DRIVER" = "cpu" ]; then \ extra_index_url_arg="--extra-index-url https://download.pytorch.org/whl/cpu"; \ elif [ "$GPU_DRIVER" = "rocm" ]; then \ - extra_index_url_arg="--index-url https://download.pytorch.org/whl/rocm5.6"; \ + extra_index_url_arg="--extra-index-url https://download.pytorch.org/whl/rocm5.6"; \ else \ extra_index_url_arg="--extra-index-url https://download.pytorch.org/whl/cu121"; \ fi &&\ @@ -54,7 +54,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ if [ "$GPU_DRIVER" = "cuda" ] && [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ pip install -e ".[xformers]"; \ else \ - pip install -e "."; \ + pip install $extra_index_url_arg -e "."; \ fi # #### Build the Web UI ------------------------------------ diff --git a/docker/run.sh b/docker/run.sh index 409df508dd..d413e53453 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -21,7 +21,7 @@ run() { printf "%s\n" "$build_args" fi - docker compose build $build_args + docker compose build $build_args $service_name unset build_args printf "%s\n" "starting service $service_name"