First commit

This commit is contained in:
Iain Bradley
2025-10-07 12:55:34 +01:00
commit 4ca7f9667a
7 changed files with 501 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
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 download_cbz.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 download_cbz.py