FROM python:3.10-slim # Install Java (correct path fix) RUN apt-get update && apt-get install -y default-jre # Install Gradio RUN pip 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"]