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

Update Dockerfile

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