Spaces:
Running
Running
Add secret to run script
Browse files- 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
|