Ramlaoui commited on
Commit
34be883
1 Parent(s): ddb4a97

Add secret to run script

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -33,7 +33,7 @@ RUN --mount=type=secret,id=MATERIALS_PROJECT_API_KEY \
33
  RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
34
 
35
  # Create the index
36
- RUN python create_index.py
37
 
38
  # Set an environment variable for Hugging Face cache
39
  ENV HF_HOME=/app/.cache
 
33
  RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
34
 
35
  # Create the index
36
+ RUN HF_TOKEN=$(cat /run/secrets/MATERIALS_PROJECT_API_KEY) python create_index.py
37
 
38
  # Set an environment variable for Hugging Face cache
39
  ENV HF_HOME=/app/.cache