First commit
This commit is contained in:
+28
@@ -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
|
||||
Reference in New Issue
Block a user