FROM python:3.9 WORKDIR /app RUN python -c "print('Python is working')" RUN pip install --no-cache-dir gradio==4.16.0 && \ python -c "import gradio; print('Gradio version:', gradio.__version__)" COPY app.py . RUN python -c "import os; print('Contents of /app:', os.listdir('.'))" EXPOSE 7860 CMD ["python", "-u", "app.py"]