Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -2,10 +2,18 @@ FROM lfoppiano/grobid:0.8.0
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
-
# إعدادات ال
|
| 6 |
ENV PORT=7860
|
| 7 |
ENV GROBID_SERVICE_HOST=0.0.0.0
|
| 8 |
|
| 9 |
-
# ال
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
+
# إعدادات البيئة لـ Hugging Face
|
| 6 |
ENV PORT=7860
|
| 7 |
ENV GROBID_SERVICE_HOST=0.0.0.0
|
| 8 |
|
| 9 |
+
# الانتقال للمجلد الرئيسي للخدمة
|
| 10 |
+
WORKDIR /opt/grobid
|
| 11 |
+
|
| 12 |
+
# منح الصلاحيات
|
| 13 |
+
RUN chmod -R 777 /opt/grobid
|
| 14 |
+
|
| 15 |
+
# إخبار Hugging Face بالمنفذ
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# التشغيل باستخدام المسار المباشر للمجلد الأساسي وليس مكتبات الـ lib
|
| 19 |
+
CMD ["java", "-cp", "grobid-service/lib/*", "org.grobid.service.GrobidServiceApplication", "server", "grobid-service/config/config.yaml"]
|