Unverified Commit edf847e5 authored by Alec's avatar Alec Committed by GitHub
Browse files

fix: add pre-commit cache dir and improve dockerignore (#5588)


Signed-off-by: default avataralec-flowers <aflowers@nvidia.com>
parent 66963b70
......@@ -19,6 +19,8 @@
**/*.plan
**/*.etcd
**/.cache/*
**/__pycache__
**/*.pyc
**/*onnx*
# Engine must be allowed because code contains dynamo_engine.py
**/*tensorrtllm_engines*
......@@ -43,6 +45,7 @@ container/Dockerfile*
.venv
.venv-docs
# Python
__pycache__/
*.pyc
......
......@@ -464,7 +464,9 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.comman
&& echo "$SNIPPET" >> "$HOME/.bashrc"
RUN mkdir -p /home/$USERNAME/.cache/ \
&& chmod g+w /home/$USERNAME/.cache/
&& mkdir -p /home/$USERNAME/.cache/pre-commit \
&& chmod g+w /home/$USERNAME/.cache/ \
&& chmod g+w /home/$USERNAME/.cache/pre-commit
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
CMD []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment