Spaces:
Sleeping
Sleeping
update dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -38,7 +38,7 @@ ENV ENV=production
|
|
| 38 |
# Add script to download images from Hugging Face during build
|
| 39 |
COPY download_images.py .
|
| 40 |
# Use build secrets to access HF_TOKEN during build time
|
| 41 |
-
RUN --mount=type=secret,id=HF_TOKEN \
|
| 42 |
if [ -n "$HF_USERNAME" ] && [ -f /run/secrets/HF_TOKEN ] && [ -n "$HF_DATASET_REPO" ]; then \
|
| 43 |
export HF_TOKEN=$(cat /run/secrets/HF_TOKEN) && \
|
| 44 |
echo "Downloading images from Hugging Face dataset for $HF_USERNAME/$HF_DATASET_REPO..." && \
|
|
|
|
| 38 |
# Add script to download images from Hugging Face during build
|
| 39 |
COPY download_images.py .
|
| 40 |
# Use build secrets to access HF_TOKEN during build time
|
| 41 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 42 |
if [ -n "$HF_USERNAME" ] && [ -f /run/secrets/HF_TOKEN ] && [ -n "$HF_DATASET_REPO" ]; then \
|
| 43 |
export HF_TOKEN=$(cat /run/secrets/HF_TOKEN) && \
|
| 44 |
echo "Downloading images from Hugging Face dataset for $HF_USERNAME/$HF_DATASET_REPO..." && \
|