FROM python:3.10-slim # Install Java RUN apt-get update && apt-get install -y default-jdk # Create working directory WORKDIR /app # Copy all project files COPY . /app # Unzip the JAR file if needed RUN unzip /app/lib/json-20210307.zip -d /app/lib/ || true # Add JAR file path to CLASSPATH ENV CLASSPATH="/app/lib/json-20210307.jar:/app" # Install Gradio RUN pip install gradio # Run the Gradio interface CMD ["python", "app.py"]