Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +17 -9
Dockerfile
CHANGED
|
@@ -1,19 +1,27 @@
|
|
| 1 |
FROM heartexlabs/label-studio:latest
|
| 2 |
|
| 3 |
-
#
|
| 4 |
ENV PORT=7860
|
| 5 |
-
ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=false
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
ENV DJANGO_CSRF_TRUSTED_ORIGINS=https://*.hf.space,https://*.huggingface.co
|
| 9 |
ENV LABEL_STUDIO_HOST=https://bisalsaha-lebel-studio.hf.space
|
| 10 |
-
ENV LABEL_STUDIO_USE_SECURE_COOKIES=true
|
| 11 |
-
ENV LABEL_STUDIO_SESSION_COOKIE_SAMESITE=None
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
-
# সার্ভার রান করা (কোনো বাড়তি স্পেস ছাড়া)
|
| 19 |
CMD ["label-studio", "--port", "7860"]
|
|
|
|
| 1 |
FROM heartexlabs/label-studio:latest
|
| 2 |
|
| 3 |
+
# HuggingFace Spaces runs on port 7860
|
| 4 |
ENV PORT=7860
|
|
|
|
| 5 |
|
| 6 |
+
# ── Public URL — must match your Space URL exactly ──────────────────────────
|
|
|
|
| 7 |
ENV LABEL_STUDIO_HOST=https://bisalsaha-lebel-studio.hf.space
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
# ── CSRF fix: use the EXACT env var name Label Studio reads ─────────────────
|
| 10 |
+
# Comma-separated, no spaces
|
| 11 |
+
ENV CSRF_TRUSTED_ORIGINS=https://bisalsaha-lebel-studio.hf.space,https://*.hf.space
|
| 12 |
+
|
| 13 |
+
# ── Tell Django it's behind an HTTPS reverse proxy ──────────────────────────
|
| 14 |
+
ENV SECURE_PROXY_SSL_HEADER=HTTP_X_FORWARDED_PROTO,https
|
| 15 |
+
|
| 16 |
+
# ── Cookie settings for cross-origin HTTPS (HF proxy requires this) ─────────
|
| 17 |
+
ENV SESSION_COOKIE_SECURE=1
|
| 18 |
+
ENV CSRF_COOKIE_SECURE=1
|
| 19 |
+
ENV SESSION_COOKIE_SAMESITE=None
|
| 20 |
+
ENV CSRF_COOKIE_SAMESITE=None
|
| 21 |
+
|
| 22 |
+
# ── Allow signup (set to true to lock down later) ────────────────────────────
|
| 23 |
+
ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=false
|
| 24 |
|
| 25 |
EXPOSE 7860
|
| 26 |
|
|
|
|
| 27 |
CMD ["label-studio", "--port", "7860"]
|