24 lines
502 B
Docker
24 lines
502 B
Docker
|
|
# 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"]
|
||
|
|
|