meg HF Staff commited on
Commit
35bc9f0
·
verified ·
1 Parent(s): dcaccba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -50,15 +50,16 @@ COPY ./requirements.txt requirements.txt
50
  RUN pip install -r requirements.txt
51
 
52
  RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
53
-
54
- COPY --chown=user . /app
55
- USER user
56
- WORKDIR /app
57
-
58
  # Expose the secret token at buildtime and use its value as git remote URL
59
  RUN --mount=type=secret,id=BULK_ENERGY_TOKEN,mode=0444,required=true \
60
  git init && \
61
  git remote add origin $(cat /run/secrets/BULK_ENERGY_TOKEN)
 
 
 
 
 
 
62
 
63
  #RUN chmod 777 /app/*.py
64
  #RUN chmod 777 /app/attempts.txt
 
50
  RUN pip install -r requirements.txt
51
 
52
  RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
 
 
 
 
 
53
  # Expose the secret token at buildtime and use its value as git remote URL
54
  RUN --mount=type=secret,id=BULK_ENERGY_TOKEN,mode=0444,required=true \
55
  git init && \
56
  git remote add origin $(cat /run/secrets/BULK_ENERGY_TOKEN)
57
+
58
+ COPY --chown=user . /app
59
+ USER user
60
+ WORKDIR /app
61
+
62
+
63
 
64
  #RUN chmod 777 /app/*.py
65
  #RUN chmod 777 /app/attempts.txt