FROM openjdk:11-jdk-slim # Install Python and Gradio RUN apt-get update && \ apt-get install -y --no-install-recommends \ python3 python3-pip && \ pip3 install gradio && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Copy project files COPY . /app WORKDIR /app # Run Gradio app CMD ["python3", "app.py"] # Set correct permissions for the working directory RUN mkdir -p /app/flagged && chmod 777 /app/flagged