FROM openjdk:11 # Install Gradio and dependencies RUN apt-get update -y && apt-get install -y python3 python3-pip RUN pip3 install gradio # Copy project files COPY . /app WORKDIR /app # Compile Java Code RUN javac -cp ".:/app/json-20210307.jar" Main.java # Run Gradio app CMD ["python3", "app.py"]