sasha HF staff commited on
Commit
42a7f14
·
verified ·
1 Parent(s): 670b931

Update Dockerfile

Browse files

exposing the secret (lololol)

Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -53,5 +53,9 @@ RUN chmod 777 -R /runs
53
  RUN chmod 777 -R /.cache
54
  RUN chmod +x /entrypoint.sh
55
 
56
- # TODO: Using container mount: -container-mounts="/fsx/sasha_luccioni:/fsx/sasha_luccioni" /entrypoint.sh --config-name text_generation backend.model=facebook/opt-125m backend.processor=facebook/opt-125m hydra.run.dir='/fsx/sasha_luccioni/optimum-benchmark/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}'
 
 
 
 
57
  ENTRYPOINT ["/entrypoint.sh"]
 
53
  RUN chmod 777 -R /.cache
54
  RUN chmod +x /entrypoint.sh
55
 
56
+ # Expose the secret DEBUG at buildtime and use its value as git remote URL
57
+ RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
58
+ git init && \
59
+ git remote add origin $(cat /run/secrets/DEBUG)
60
+
61
  ENTRYPOINT ["/entrypoint.sh"]