meg HF staff commited on
Commit
da355f5
·
verified ·
1 Parent(s): 82c03af

Playing more with 'user'.

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -53,9 +53,12 @@ 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 --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
@@ -70,8 +73,6 @@ RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
70
  git init && \
71
  git remote add origin $(cat /run/secrets/DEBUG)
72
 
73
- USER user
74
-
75
  ENV HOME=/home/user \
76
  PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
77
 
 
53
  /opt/conda/bin/conda clean -ya
54
 
55
  COPY --chown=user ./requirements.txt requirements.txt
56
+
57
+ USER user
58
+
59
  RUN pip install -r requirements.txt
60
 
61
+ RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
62
 
63
  COPY --chown=user ./check_h100.py /check_h100.py
64
  COPY --chown=user ./entrypoint.sh /entrypoint.sh
 
73
  git init && \
74
  git remote add origin $(cat /run/secrets/DEBUG)
75
 
 
 
76
  ENV HOME=/home/user \
77
  PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
78