Files
2025-10-07 14:23:38 +01:00

29 lines
610 B
Docker

FROM python:3.11-slim
# Install Firefox and dependencies
RUN apt-get update && apt-get install -y \
firefox-esr \
wget \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the download script
COPY cbz_downloader.py .
# Create downloads directory
RUN mkdir -p /app/downloads
# Set environment variables (can be overridden at runtime)
ENV EMAIL=""
ENV PASSWORD=""
ENV OUTPUT_DIR="/app/downloads"
# Run the script
CMD python cbz_downloader.py