File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11# This file should remain in sync with .gitignore. If you need to make changes,
22# please add a comment explaining why. For items that must be removed, comment
33# them out instead of deleting them.
4+
45__pycache__ /
56* .py [cod ]
67/output /
@@ -16,7 +17,7 @@ extra_model_paths.yaml
1617/.vs
1718.vscode /
1819.idea /
19- venv /
20+ venv * /
2021.venv /
2122/web /extensions /*
2223! /web /extensions /logging.js.example
Original file line number Diff line number Diff line change 1111# supported at a time.
1212FROM python:3.12.12-trixie
1313
14- # Install cmake, which is an indirect installation dependencies
14+ # Install cmake, which is an indirect installation dependencies. We also keep
15+ # the apt cache following the update so the image can be quickly rebuilt with
16+ # additional, user-defined system dependencies required by custom node packs.
1517RUN apt-get update && apt-get install -y --no-install-recommends cmake
1618
1719# Create a regular user whose UID and GID will match the host user's at runtime.
@@ -53,7 +55,7 @@ ENV PIP_EXTRA_INDEX_URL=${PIP_EXTRA_INDEX_URL}
5355#
5456# Since this step takes a long time to complete, it's performed early to take
5557# advantage of Docker's build cache, thereby accelerating subsequent builds.
56- COPY requirements.txt manager_requirements.txt ./
58+ COPY requirements.txt ./
5759RUN pip install \
5860 --no-cache-dir \
5961 --disable-pip-version-check \
@@ -88,7 +90,8 @@ RUN chmod +x entrypoint.sh
8890ENTRYPOINT [ "./entrypoint.sh" ]
8991CMD [ "python" , "./main.py" ]
9092
91- # Install additional system dependencies
93+ # Install additional system dependencies. Users can use this to install
94+ # dependencies required by custom node packs.
9295ARG APT_EXTRA_PACKAGES
9396RUN apt-get install -y --no-install-recommends $APT_EXTRA_PACKAGES \
9497 && apt-get clean \
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ chown -R "$user:$user_group" \
3939# address this issue.
4040echo " [entrypoint] Adding user to GPU device groups..."
4141for dev in /dev/nvidia* ; do
42+ [ -e " $dev " ] || continue
4243 group=$( ls -ld " $dev " | awk ' {print $4}' )
4344 usermod -aG " $group " " $user "
4445done
You can’t perform that action at this time.
0 commit comments