# Base image for Python FROM python:3.10-slim # Install Java (required for language-tool-python) RUN apt-get update && apt-get install -y openjdk-11-jdk && rm -rf /var/lib/apt/lists/* # Set JAVA_HOME environment variable ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ ENV PATH=$JAVA_HOME/bin:$PATH # Set working directory WORKDIR /app # Copy the current directory contents into the container COPY . /app # Install Python dependencies from requirements.txt RUN pip install --upgrade pip && pip install -r requirements.txt # Expose port (optional, if using Gradio or similar) EXPOSE 7860 # Command to run the app CMD ["python", "app.py"]