ebook-hf-executor / Dockerfile
fromozu's picture
Deploy: auto-download from Anna Archive and Z-Library, remove manual link flow
5e31f74 verified
raw
history blame contribute delete
464 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY hf_backend /app/hf_backend
COPY bilingual_book_maker /app/bilingual_book_maker
RUN apt-get update \
&& apt-get install -y --no-install-recommends calibre \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -r /app/requirements.txt
EXPOSE 7860
CMD ["uvicorn", "hf_backend.app:app", "--host", "0.0.0.0", "--port", "7860"]