Gradio app works fine using simple Dockerfile, but fails when using docker-compose
I have a simple gradio app that runs fine inside Docker, but fails when launched via docker-compose. app.py import gradio as gr def greet(name): return f"Hello {name}!" iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch(server_name="0.0.0.0", server_port=7860) Dockerfile FROM python:3.12-slim WORKDIR /app COPY…