FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ pandas \ pyarrow \ websockets \ huggingface_hub \ requests \ psutil COPY app.py . # /data = HF Dataset mount hoặc local storage RUN mkdir -p /data/cache EXPOSE 7860 CMD ["python", "-u", "app.py"]