dylanebert
commited on
Commit
·
9cfda07
1
Parent(s):
c99cc8d
revert oauth
Browse filesmount token
mount before build
- Dockerfile +3 -0
- README.md +0 -2
Dockerfile
CHANGED
|
@@ -4,6 +4,9 @@ WORKDIR /app
|
|
| 4 |
COPY package.json package.json
|
| 5 |
RUN npm install
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
COPY / /app
|
| 8 |
RUN npm run build
|
| 9 |
|
|
|
|
| 4 |
COPY package.json package.json
|
| 5 |
RUN npm install
|
| 6 |
|
| 7 |
+
RUN --mount=type=secret,id=VITE_HF_TOKEN,mode=0444,required=true \
|
| 8 |
+
echo "VITE_HF_TOKEN=$(cat /run/secrets/VITE_HF_TOKEN)" > /app/.env
|
| 9 |
+
|
| 10 |
COPY / /app
|
| 11 |
RUN npm run build
|
| 12 |
|
README.md
CHANGED
|
@@ -7,8 +7,6 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
app_port: 3000
|
| 10 |
-
hf_oauth: true
|
| 11 |
-
hf_oauth_expiration_minutes: 480
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
app_port: 3000
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|