FROM python:3.9 # نصب پیش‌نیازهای سیستمی RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* # نصب بسته wheel RUN pip install --no-cache-dir wheel # کپی فایل‌های پروژه WORKDIR /home/user/app COPY . . # نصب وابستگی‌های پایتون RUN pip install --no-cache-dir -r requirements.txt CMD ["python", "app.py"]