v4 flagship Space (3 tiers) from registry v2 (earlier contents: 906bc45ae05c)
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -8,5 +8,8 @@ WORKDIR /home/user/app
|
|
| 8 |
COPY --chown=user requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir --user -r requirements.txt "gradio==6.29.1"
|
| 10 |
COPY --chown=user . .
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
CMD ["python", "app.py"]
|
|
|
|
| 8 |
COPY --chown=user requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir --user -r requirements.txt "gradio==6.29.1"
|
| 10 |
COPY --chown=user . .
|
| 11 |
+
# OAuth Spaces (hf_oauth): Gradio builds real login routes only inside a Space (SYSTEM=spaces); at build time there is no
|
| 12 |
+
# Space, so warm.py gets placeholder OAuth variables for this one step (the running Space uses HF's real ones).
|
| 13 |
+
RUN SYSTEM=spaces SPACE_ID=build/warm OAUTH_CLIENT_ID=warm OAUTH_CLIENT_SECRET=warm OAUTH_SCOPES="openid profile" \
|
| 14 |
+
OPENID_PROVIDER_URL=https://huggingface.co TLSQ_NUM_THREADS=2 python warm.py
|
| 15 |
CMD ["python", "app.py"]
|