Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -54,6 +54,13 @@ RUN cmake -B build \
|
|
| 54 |
# Install llama.cpp Python conversion deps
|
| 55 |
RUN pip install --no-cache-dir -r requirements.txt || true
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# โโ Working directories โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 58 |
RUN mkdir -p /workspace/model-fp8 \
|
| 59 |
/workspace/model-bf16 \
|
|
|
|
| 54 |
# Install llama.cpp Python conversion deps
|
| 55 |
RUN pip install --no-cache-dir -r requirements.txt || true
|
| 56 |
|
| 57 |
+
# โโ Runtime secrets (injected by HF Spaces; never hard-coded) โโโโโโโโโโโโโโโโ
|
| 58 |
+
# Declaring ENV here tells the HF Spaces runtime to inject the Secret named
|
| 59 |
+
# HF_TOKEN into the container. The value is intentionally empty in the image
|
| 60 |
+
# itself โ credentials must come from the Space's Secrets panel, never from
|
| 61 |
+
# the Dockerfile or any committed file.
|
| 62 |
+
ENV HF_TOKEN=""
|
| 63 |
+
|
| 64 |
# โโ Working directories โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
| 65 |
RUN mkdir -p /workspace/model-fp8 \
|
| 66 |
/workspace/model-bf16 \
|