FROM ubuntu:22.04 # Prevent interactive prompts during installation ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies including fonts (no external downloads) RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ texlive-full \ texlive-xetex \ texlive-luatex \ latexmk \ fonts-liberation \ fonts-dejavu \ fonts-liberation2 \ fonts-noto \ fonts-noto-color-emoji \ fonts-roboto \ fonts-open-sans \ fonts-lato \ fonts-inconsolata \ fonts-firacode \ fonts-ubuntu \ fonts-lobster \ fontconfig \ && fc-cache -f -v \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip3 install --no-cache-dir flask flask-cors # Set working directory WORKDIR /app # Copy application files COPY . . # Expose port EXPOSE 7860 # Run the application CMD ["python3", "app.py"]