re format

This commit is contained in:
Death916 2025-02-20 05:28:09 -08:00
parent 4624b927af
commit c3f45dae6b
7 changed files with 81 additions and 18 deletions

14
docker/docker-compose.yml Normal file
View file

@ -0,0 +1,14 @@
version: '3.8'
services:
c2c-scraper:
image: death916/c2cscrape:latest
volumes:
- /mnt/media/media/books/audio/podcasts/C2C:/downloads
- /mnt/media/docker/volumes/c2cscrape
restart: unless-stopped
environment:
- TZ=America/Los_Angeles

22
docker/dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:3.11-slim
# Set timezone
ENV TZ=America/Los_Angeles
RUN apt-get update && apt-get install -y tzdata
# Create app directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY . .
# Set hardcoded download path
ENV DOWNLOAD_DIR=/downloads
# Start the scraper
CMD ["python", "-u", "c2cscrape.py"]