File size: 638 Bytes
061da41
b27b6cf
 
361c658
 
b27b6cf
361c658
b27b6cf
061da41
 
b27b6cf
 
061da41
361c658
 
 
 
b27b6cf
061da41
b27b6cf
061da41
 
 
b27b6cf
 
 
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
FROM python:3.10-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    DEBIAN_FRONTEND=noninteractive

# poppler 等(pdf2image用)
RUN apt-get update && apt-get install -y --no-install-recommends \
    poppler-utils libglib2.0-0 libsm6 libxext6 libxrender1 libjpeg62-turbo \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY requirements.txt ./

# pip を新しめに(依存解決の安定化)
RUN python -m pip install --upgrade pip \
 && pip install --no-cache-dir -r requirements.txt

COPY . /app

ENV PORT=7860 \
    GRADIO_SERVER_NAME=0.0.0.0 \
    GRADIO_SERVER_PORT=7860

EXPOSE 7860
CMD ["python", "app.py"]