Spaces:
Running
Running
burtenshaw
commited on
Commit
·
07c4c18
1
Parent(s):
f25960c
add hf_token to env variable
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -14,10 +14,9 @@ RUN npm ci
|
|
14 |
|
15 |
# Build stage
|
16 |
FROM base AS builder
|
17 |
-
|
18 |
-
ARG HF_TOKEN
|
19 |
# Set HF_TOKEN as an environment variable for the build process
|
20 |
-
ENV HF_TOKEN=$
|
21 |
|
22 |
# Copy dependencies from the 'deps' stage
|
23 |
COPY --from=deps /app/node_modules ./node_modules
|
|
|
14 |
|
15 |
# Build stage
|
16 |
FROM base AS builder
|
17 |
+
|
|
|
18 |
# Set HF_TOKEN as an environment variable for the build process
|
19 |
+
ENV HF_TOKEN=$(cat /run/secrets/HF_TOKEN)
|
20 |
|
21 |
# Copy dependencies from the 'deps' stage
|
22 |
COPY --from=deps /app/node_modules ./node_modules
|