FROM python:3.11-slim-bookworm ENV TZ=Asia/Dhaka ENV PYTHONUNBUFFERED=1 ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y --no-install-recommends \ git build-essential tzdata ffmpeg libssl-dev libffi-dev && \ ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone && \ rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir -U pip wheel==0.45.1 WORKDIR /app # Only copy what's needed — single file bot COPY requirements.txt . RUN pip install -U -r requirements.txt COPY main.py . COPY config.env . EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]