ocr-receipt / Dockerfile
Phurin1's picture
Rename docker to Dockerfile
2866b68 verified
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"]