unsloth/docker
Daniel Han 18260a2729 docker: fix build.sh's arch-list read for relative invocations
a05c58b6b read the arch list back out of the Dockerfile with
"$(dirname "$0")/Dockerfile", but build.sh already does
cd "$(dirname "$0")" near the top. The dirname is therefore applied
twice, so every invocation by a path other than ./build.sh from inside
docker/ died before reaching docker build:

    $ bash wt_r5748/docker/build.sh
    sed: can't read wt_r5748/docker/Dockerfile: No such file or directory
    EXIT=2

set -euo pipefail turns the sed failure into an abort, so this broke the
whole script rather than just the banner it was meant to print.

Use a bare filename, which is what the rest of the script already does
(the docker build context below is a bare "."). Verified from the
workspace root, from an absolute path, and from docker/ itself: all
three now print

    arch list      7.5;8.0;8.6;8.9;9.0;10.0;12.0+PTX
2026-07-26 17:30:21 +00:00
..
jupyter docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
.dockerignore docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
build.sh docker: fix build.sh's arch-list read for relative invocations 2026-07-26 17:30:21 +00:00
Dockerfile docker: keep transformers sidecar selection inside what the baked vLLM can import 2026-07-26 17:28:08 +00:00
Dockerfile.studio docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
entrypoint.sh docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
fetch_llama_prebuilt.py docker: tighten comments 2026-07-19 15:32:20 +00:00
NOTICE docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
run.sh docker: tighten comments 2026-07-19 15:32:20 +00:00
smoke_test.py docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
studio_launch.sh docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
supervisord.conf docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_colab_compat.py docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_ipython_startup.py docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_jupyter_tunnel.sh docker: optional Cloudflare tunnel for JupyterLab (UNSLOTH_JUPYTER_CLOUDFLARE) 2026-06-24 09:55:11 +00:00
unsloth_llama_update.sh docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_nb_compat.py docker: keep transformers sidecar selection inside what the baked vLLM can import 2026-07-26 17:28:08 +00:00
unsloth_nb_content_sig.py docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_nb_pip_magic.py docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
unsloth_nb_strip_colab.py docker: fix the notebook sync race and widen the Colab intro strip 2026-07-26 17:28:20 +00:00
unsloth_nb_view.py docker: trim redundant comments in the image build files 2026-07-26 15:45:58 +00:00
unsloth_pip_shim.py docker: protect the tested training stack from notebook install cells 2026-07-26 17:28:15 +00:00
unsloth_run.py docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_studio_update.sh docker: tighten comments 2026-07-19 15:32:20 +00:00
unsloth_sync_notebooks.sh docker: fix the notebook sync race and widen the Colab intro strip 2026-07-26 17:28:20 +00:00