meg HF staff commited on
Commit
95f0d4e
·
verified ·
1 Parent(s): ba8cdca

Adding more --chown=user s

Browse files

I don't fully understand why having all these --chown=user s , and the explicit user set-up, is useful.

Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -53,9 +53,9 @@ RUN case ${TARGETPLATFORM} in \
53
  /opt/conda/bin/conda clean -ya
54
 
55
  COPY --chown=user ./requirements.txt requirements.txt
56
- RUN pip install -r requirements.txt
57
 
58
- RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
59
 
60
  COPY --chown=user ./check_h100.py /check_h100.py
61
  COPY --chown=user ./entrypoint.sh /entrypoint.sh
 
53
  /opt/conda/bin/conda clean -ya
54
 
55
  COPY --chown=user ./requirements.txt requirements.txt
56
+ RUN --chown=user pip install -r requirements.txt
57
 
58
+ RUN --chown=user git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
59
 
60
  COPY --chown=user ./check_h100.py /check_h100.py
61
  COPY --chown=user ./entrypoint.sh /entrypoint.sh