TDN-M commited on
Commit
fb569b1
·
verified ·
1 Parent(s): 5800dd8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Cài đặt các gói hệ thống cần thiết
4
+ RUN apt-get update && apt-get install -y \
5
+ tesseract-ocr \
6
+ tesseract-ocr-eng \
7
+ tesseract-ocr-vie \
8
+ libtesseract-dev \
9
+ poppler-utils \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Cài đặt các thư viện Python
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Sao chép mã ứng dụng
17
+ COPY app.py .
18
+
19
+ # Thiết lập lệnh khởi chạy
20
+ CMD ["python", "app.py"]