# ၁။ Python Image FROM python:3.9-slim # ၂။ Root အနေနဲ့ အရင်ပြင်ဆင်မယ် USER root WORKDIR /app # ၃။ လိုအပ်တာတွေ သွင်းမယ် RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/* # ၄။ ဖိုင်တွေကို ကူးမယ် COPY . /app # ၅။ Library တွေ သွင်းမယ် RUN pip install --no-cache-dir -r requirements.txt # ၆။ Hugging Face User Permission ပေးမယ် RUN useradd -m -u 1000 user && \ chown -R user:user /app USER user # ၇။ Port နဲ့ Run မည့် Command (မင်းရဲ့ main.py ကို ခေါ်ထားပါတယ်) EXPOSE 7860 CMD ["python", "main.py"]