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

Mount secret

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