Spaces:
Paused
Paused
fix(hf_token): export HF_TOKEN during build
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -17,6 +17,8 @@ COPY --chown=user . /app
|
|
17 |
|
18 |
# Download at build time,
|
19 |
# to ensure during restart we won't have to wait for the download from HF (only wait for docker pull).
|
|
|
|
|
20 |
RUN python /app/download_model.py
|
21 |
|
22 |
EXPOSE 7860
|
|
|
17 |
|
18 |
# Download at build time,
|
19 |
# to ensure during restart we won't have to wait for the download from HF (only wait for docker pull).
|
20 |
+
RUN export HF_HOME=/app/.cache/huggingface
|
21 |
+
RUN export HF_TOKEN=${HF_TOKEN}
|
22 |
RUN python /app/download_model.py
|
23 |
|
24 |
EXPOSE 7860
|