We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89ff316 commit 9f46de8Copy full SHA for 9f46de8
1 file changed
Dockerfile
@@ -31,8 +31,9 @@ RUN python -m pip install --no-cache-dir --upgrade pip && \
31
rm -rf /tmp/fmpose3d
32
33
# Allow non-root user to download DLC model weights at runtime
34
-RUN mkdir -p /opt/conda/lib/python3.11/site-packages/deeplabcut/modelzoo/checkpoints && \
35
- chown -R ${USERNAME}:${USERNAME} /opt/conda/lib/python3.11/site-packages/deeplabcut/modelzoo
+RUN DLC_MODELZOO_DIR="$(python -c "import site, pathlib; print(pathlib.Path(site.getsitepackages()[0]) / 'deeplabcut' / 'modelzoo')")" \
+ && mkdir -p "${DLC_MODELZOO_DIR}/checkpoints" \
36
+ && chown -R "${USERNAME}:${USERNAME}" "${DLC_MODELZOO_DIR}"
37
38
# Set your user as owner of the home directory before switching
39
RUN chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
0 commit comments