Add script to convert pdf to audiobook

This commit is contained in:
2025-07-14 11:09:44 +01:00
parent a06db3333b
commit 650bb88bc0
6 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# Dockerfile
FROM python:3.10-slim
# 1) System deps for audio processing
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# 2) Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 3) Copy your script + code
COPY . .
# 4) Default entrypoint is just the script; pass args via docker-compose or CLI
ENTRYPOINT ["python", "pdf_to_audiobook.py"]