FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* RUN pip install --upgrade pip RUN pip install autotrain-advanced COPY app.py /app/app.py EXPOSE 7860 CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860"]