File size: 582 Bytes
727e272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.10-slim

# ติดตั้ง Tesseract และภาษาไทย+อังกฤษ
RUN apt-get update && apt-get install -y \
    tesseract-ocr \
    tesseract-ocr-tha \
    tesseract-ocr-eng \
    libglib2.0-0 \
    libsm6 \
    libxrender1 \
    libxext6 \
    && rm -rf /var/lib/apt/lists/*

# สร้าง working directory
WORKDIR /app

# คัดลอกไฟล์ไปใน container
COPY . /app

# ติดตั้ง Python packages
RUN pip install --no-cache-dir -r requirements.txt

# รันแอป Gradio
CMD ["python", "app.py"]