wynai commited on
Commit
32c2bce
·
verified ·
1 Parent(s): 7176b8b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Cài đặt gói hệ thống cần thiết
4
+ RUN apt-get update && apt-get install -y \
5
+ git curl && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ # Tạo thư mục ứng dụng
9
+ WORKDIR /app
10
+
11
+ # Cài docling-serve từ PyPI
12
+ RUN pip install --no-cache-dir "docling-serve[ui]"
13
+
14
+ # Cấu hình để chạy trên 0.0.0.0:7860
15
+ ENV DOCLING_SERVE_ENABLE_UI=1 \
16
+ DOCLING_SERVE_HOST=0.0.0.0 \
17
+ DOCLING_SERVE_PORT=7860
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ # Chạy server
23
+ CMD ["docling-serve", "run"]