CoolFace
Apppublic

fromozu/ebook-executor

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1FROM python:3.11-slim2 3ENV PYTHONUNBUFFERED=1 \4    PIP_NO_CACHE_DIR=15 6WORKDIR /app7 8COPY requirements.txt /app/requirements.txt9COPY hf_backend /app/hf_backend10COPY bilingual_book_maker /app/bilingual_book_maker11 12RUN apt-get update \13    && apt-get install -y --no-install-recommends \14        calibre \15    && rm -rf /var/lib/apt/lists/*16 17RUN pip install -r /app/requirements.txt18 19EXPOSE 786020 21CMD ["uvicorn", "hf_backend.app:app", "--host", "0.0.0.0", "--port", "7860"]22