File size: 905 Bytes
18e1c52
 
 
 
 
56fd81f
18e1c52
 
 
 
7578e01
 
18e1c52
7578e01
 
 
 
 
 
 
 
 
 
 
 
 
56fd81f
18e1c52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"]