This commit is contained in:
Death916 2025-02-21 01:52:01 -08:00
parent c3f45dae6b
commit 8aebea3b7a
2 changed files with 23 additions and 1 deletions

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 src/c2cscrape.py .
# Set hardcoded download path
ENV DOWNLOAD_DIR=/downloads
# Start the scraper
CMD ["python", "-u", "c2cscrape.py"]

View file

@ -5,7 +5,7 @@ services:
image: death916/c2cscrape:latest
volumes:
- /mnt/media/media/books/audio/podcasts/C2C:/downloads
- /mnt/media/docker/volumes/c2cscrape
- /mnt/media/docker/volumes/c2cscrape:/app/data
restart: unless-stopped
environment:
- TZ=America/Los_Angeles