Corin1998's picture
Update Dockerfile
361c658 verified
raw
history blame contribute delete
638 Bytes
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"]