mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
re format
This commit is contained in:
parent
4624b927af
commit
c3f45dae6b
7 changed files with 81 additions and 18 deletions
14
docker/docker-compose.yml
Normal file
14
docker/docker-compose.yml
Normal 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
22
docker/dockerfile
Normal 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"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue