Add script to convert pdf to audiobook
This commit is contained in:
23
pdf-to-audiobook/Dockerfile
Normal file
23
pdf-to-audiobook/Dockerfile
Normal 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"]
|
||||
|
||||
Reference in New Issue
Block a user