# ใช้ Python 3.10 เป็น base image FROM python:3.10 # ติดตั้ง dependencies ระบบ RUN apt-get update && apt-get install -y libgl1-mesa-glx # กำหนดโฟลเดอร์ทำงาน WORKDIR /app # คัดลอกไฟล์โปรเจคทั้งหมดไปยัง container COPY . . # ติดตั้ง Python dependencies RUN pip install -r requirements.txt # รันแอปพลิเคชัน CMD ["python", "app.py"]