FROM python:3.12 WORKDIR /app COPY . . ENV PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y libgl1 RUN pip install . # 指定要公开的端口 EXPOSE 7860 CMD ["pdf2zh", "-i"]