Files
scarif/pdf-to-audiobook/Dockerfile

24 lines
502 B
Docker
Raw Normal View History

2025-07-14 11:09:44 +01:00
# 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"]